├── .github └── workflows │ ├── build-qt5.yml │ └── build-qt6.yml ├── .gitignore ├── .krazy ├── .pre-commit-config.yaml ├── .qmake.conf ├── .zed └── settings.json ├── CMakeLists.txt ├── CMakePresets.json ├── INSTALL.txt ├── LICENSE.GPL.txt ├── LICENSE.txt ├── README.md ├── README.txt ├── declarativewidgets.pro ├── doc └── DeclarativeWidgets-CopyrightAssignmentForm.docx ├── examples ├── CMakeLists.txt ├── animation.qml ├── bookstore │ ├── CMakeLists.txt │ ├── README.txt │ ├── booklistproxymodel.cpp │ ├── booklistproxymodel.h │ ├── booksofauthormodel.cpp │ ├── booksofauthormodel.h │ ├── bookstore.cpp │ ├── bookstore.db │ ├── bookstore.h │ ├── bookstore.pro │ ├── bookstore.qrc │ ├── bookstore.sqlite3.sql │ ├── main.cpp │ ├── qtquick │ │ └── Shop.qml │ └── widgets │ │ ├── Admin.qml │ │ ├── Developer.qml │ │ └── Staff.qml ├── browser.qml ├── config-editor │ ├── CMakeLists.txt │ ├── README.txt │ ├── config-editor.pro │ ├── config-editor.qrc │ ├── configeditor.cpp │ ├── configeditor.h │ ├── demodata │ │ ├── akonadiserverrc │ │ └── akonadiserverrc-editor.qml │ ├── main.cpp │ ├── main.qml │ ├── settingsadaptor.cpp │ └── settingsadaptor.h ├── declarativeview.qml ├── declarativeview_qqtest.qml ├── dialogs.qml ├── editor.qml ├── examples.pri ├── examples.pro ├── filedialog.qml ├── gallery.qml ├── layouts.qml ├── messagebox.qml ├── test.qml ├── text-editor │ ├── CMakeLists.txt │ ├── editor.cpp │ ├── editor.h │ ├── editor.png │ ├── main.cpp │ ├── main.qml │ ├── text-editor.pro │ └── text-editor.qrc └── widgetproperties.qml ├── main.cpp ├── qwidgets.list ├── runner.pro ├── src ├── CMakeLists.txt ├── abstractdeclarativeobject.cpp ├── abstractdeclarativeobject_p.h ├── declarativeaction.cpp ├── declarativeaction_p.h ├── declarativeactionitem.cpp ├── declarativeactionitem_p.h ├── declarativeboxlayout.cpp ├── declarativeboxlayout_p.h ├── declarativebuttongroupextension.cpp ├── declarativebuttongroupextension_p.h ├── declarativecolordialog.cpp ├── declarativecolordialog_p.h ├── declarativecomboboxextension.cpp ├── declarativecomboboxextension_p.h ├── declarativecontainerwidgetextension_p.h ├── declarativefiledialog.cpp ├── declarativefiledialog_p.h ├── declarativefilesystemmodelextension.cpp ├── declarativefilesystemmodelextension_p.h ├── declarativefontdialog.cpp ├── declarativefontdialog_p.h ├── declarativeformlayout.cpp ├── declarativeformlayout_p.h ├── declarativegridlayout.cpp ├── declarativegridlayout_p.h ├── declarativehboxlayout.cpp ├── declarativehboxlayout_p.h ├── declarativeicon.cpp ├── declarativeicon_p.h ├── declarativeinputdialog.cpp ├── declarativeinputdialog_p.h ├── declarativeitemviewextension.cpp ├── declarativeitemviewextension_p.h ├── declarativelabelextension.cpp ├── declarativelabelextension_p.h ├── declarativelayoutextension.cpp ├── declarativelayoutextension.h ├── declarativeline.cpp ├── declarativeline_p.h ├── declarativeloaderwidget.cpp ├── declarativeloaderwidget_p.h ├── declarativemessagebox.cpp ├── declarativemessagebox_p.h ├── declarativeobjectextension.cpp ├── declarativeobjectextension.h ├── declarativeobjectproxy_p.h ├── declarativepixmap.cpp ├── declarativepixmap_p.h ├── declarativeqmlcontext.cpp ├── declarativeqmlcontext_p.h ├── declarativequickwidgetextension.cpp ├── declarativequickwidgetextension_p.h ├── declarativeseparator.cpp ├── declarativeseparator_p.h ├── declarativesizepolicy.cpp ├── declarativesizepolicy_p.h ├── declarativespaceritem.cpp ├── declarativespaceritem_p.h ├── declarativestackedlayout.cpp ├── declarativestackedlayout_p.h ├── declarativestatusbar.cpp ├── declarativestatusbar_p.h ├── declarativestringlistmodelextension.cpp ├── declarativestringlistmodelextension_p.h ├── declarativetableviewextension.cpp ├── declarativetableviewextension_p.h ├── declarativetabstops.cpp ├── declarativetabstops_p.h ├── declarativetabwidget.cpp ├── declarativetabwidget_p.h ├── declarativetexteditextension.cpp ├── declarativetexteditextension_p.h ├── declarativetreeviewextension.cpp ├── declarativetreeviewextension_p.h ├── declarativevboxlayout.cpp ├── declarativevboxlayout_p.h ├── declarativewidgetextension.cpp ├── declarativewidgetextension.h ├── declarativewidgets.typeinfo ├── declarativewidgets_plugin.cpp ├── declarativewidgets_plugin.h ├── defaultobjectcontainer.cpp ├── defaultobjectcontainer_p.h ├── defaultwidgetcontainer.cpp ├── defaultwidgetcontainer.h ├── layoutcontainerinterface_p.h ├── mainwindowwidgetcontainer.cpp ├── mainwindowwidgetcontainer_p.h ├── menubarwidgetcontainer.cpp ├── menubarwidgetcontainer_p.h ├── menuwidgetcontainer.cpp ├── menuwidgetcontainer_p.h ├── objectadaptors.cpp ├── objectadaptors_p.h ├── objectcontainerinterface_p.h ├── qmldir ├── qt6compat_p.h ├── scrollareawidgetcontainer.cpp ├── scrollareawidgetcontainer_p.h ├── src.pro ├── stackedwidgetwidgetcontainer.cpp ├── stackedwidgetwidgetcontainer_p.h ├── staticdialogmethodattached.cpp ├── staticdialogmethodattached_p.h ├── toolbarwidgetcontainer.cpp ├── toolbarwidgetcontainer_p.h └── widgetcontainerinterface_p.h ├── tests ├── CMakeLists.txt ├── auto │ ├── auto.pri │ ├── auto.pro │ ├── instantiatetypes │ │ ├── .gitignore │ │ ├── instantiatetypes.pro │ │ ├── qml.qrc │ │ ├── qml │ │ │ ├── creatable │ │ │ │ ├── core │ │ │ │ │ ├── StringListModel.qml │ │ │ │ │ └── Timer.qml │ │ │ │ ├── layouts │ │ │ │ │ ├── FormLayout.qml │ │ │ │ │ ├── GridLayout.qml │ │ │ │ │ ├── HBoxLayout.qml │ │ │ │ │ ├── StackedLayout.qml │ │ │ │ │ └── VBoxLayout.qml │ │ │ │ ├── objects │ │ │ │ │ ├── Action.qml │ │ │ │ │ ├── ActionItem.qml │ │ │ │ │ ├── ButtonGroup.qml │ │ │ │ │ ├── FileSystemModel.qml │ │ │ │ │ ├── Icon.qml │ │ │ │ │ ├── QmlContext.qml │ │ │ │ │ ├── QmlContextProperty.qml │ │ │ │ │ ├── Separator.qml │ │ │ │ │ └── TabStops.qml │ │ │ │ ├── webenginewidgets │ │ │ │ │ └── WebEngineView.qml │ │ │ │ └── widgets │ │ │ │ │ ├── CalendarWidget.qml │ │ │ │ │ ├── CheckBox.qml │ │ │ │ │ ├── ColorDialog.qml │ │ │ │ │ ├── ColumnView.qml │ │ │ │ │ ├── ComboBox.qml │ │ │ │ │ ├── CommandLinkButton.qml │ │ │ │ │ ├── DateEdit.qml │ │ │ │ │ ├── DateTimeEdit.qml │ │ │ │ │ ├── Dial.qml │ │ │ │ │ ├── Dialog.qml │ │ │ │ │ ├── DialogButtonBox.qml │ │ │ │ │ ├── DoubleSpinBox.qml │ │ │ │ │ ├── FileDialog.qml │ │ │ │ │ ├── FontDialog.qml │ │ │ │ │ ├── Frame.qml │ │ │ │ │ ├── GroupBox.qml │ │ │ │ │ ├── InputDialog.qml │ │ │ │ │ ├── LCDNumber.qml │ │ │ │ │ ├── Label.qml │ │ │ │ │ ├── LineEdit.qml │ │ │ │ │ ├── ListView.qml │ │ │ │ │ ├── MainWindow.qml │ │ │ │ │ ├── Menu.qml │ │ │ │ │ ├── MenuBar.qml │ │ │ │ │ ├── MessageBox.qml │ │ │ │ │ ├── PlainTextEdit.qml │ │ │ │ │ ├── ProgressBar.qml │ │ │ │ │ ├── PushButton.qml │ │ │ │ │ ├── QuickWidget.qml │ │ │ │ │ ├── RadioButton.qml │ │ │ │ │ ├── ScrollArea.qml │ │ │ │ │ ├── ScrollBar.qml │ │ │ │ │ ├── Slider.qml │ │ │ │ │ ├── SpinBox.qml │ │ │ │ │ ├── StackedWidget.qml │ │ │ │ │ ├── StatusBar.qml │ │ │ │ │ ├── TabWidget.qml │ │ │ │ │ ├── TableView.qml │ │ │ │ │ ├── TextBrowser.qml │ │ │ │ │ ├── TextEdit.qml │ │ │ │ │ ├── TimeEdit.qml │ │ │ │ │ ├── ToolBar.qml │ │ │ │ │ ├── ToolButton.qml │ │ │ │ │ ├── TreeView.qml │ │ │ │ │ └── Widget.qml │ │ │ └── uncreatable │ │ │ │ ├── AbstractItemModel.qml │ │ │ │ ├── HeaderView.qml │ │ │ │ ├── ItemSelectionModel.qml │ │ │ │ └── TextDocument.qml │ │ └── tst_instantiatetypes.cpp │ ├── layouts │ │ ├── formlayout.ui │ │ ├── formlayoutwidget.cpp │ │ ├── formlayoutwidget.h │ │ ├── gridlayout.ui │ │ ├── gridlayoutwidget.cpp │ │ ├── gridlayoutwidget.h │ │ ├── hboxlayout.ui │ │ ├── hboxlayoutwidget.cpp │ │ ├── hboxlayoutwidget.h │ │ ├── layouts.pro │ │ ├── qml.qrc │ │ ├── qml │ │ │ ├── FormLayoutTest.qml │ │ │ ├── GridLayoutTest.qml │ │ │ ├── HBoxLayoutTest.qml │ │ │ ├── StackedLayoutTest.qml │ │ │ ├── StackedWidgetTest.qml │ │ │ └── VBoxLayoutTest.qml │ │ ├── stackedlayoutwidget.cpp │ │ ├── stackedlayoutwidget.h │ │ ├── stackedwidget.cpp │ │ ├── stackedwidget.h │ │ ├── stackedwidget.ui │ │ ├── tst_layouts.cpp │ │ ├── vboxlayout.ui │ │ ├── vboxlayoutwidget.cpp │ │ └── vboxlayoutwidget.h │ ├── qmlplugins │ │ ├── qmlplugins.pro │ │ └── tst_qmlplugins.cpp │ └── quickwidget │ │ ├── quickwidget.pro │ │ ├── quickwidgets.qrc │ │ ├── rectangle-context.qml │ │ ├── rectangle.qml │ │ └── tst_quickwidget.cpp └── tests.pro └── ui2dw ├── CMakeLists.txt ├── buddyvisitor.cpp ├── buddyvisitor.h ├── connectionnodevisitor.cpp ├── connectionnodevisitor.h ├── elementnamevisitor.cpp ├── elementnamevisitor.h ├── fontproperyvisitor.cpp ├── fontproperyvisitor.h ├── idvisitor.cpp ├── idvisitor.h ├── itemvisitor.cpp ├── itemvisitor.h ├── layoutvisitor.cpp ├── layoutvisitor.h ├── main.cpp ├── parser.cpp ├── parser.h ├── qmlwriter.cpp ├── qmlwriter.h ├── tabstopsnodevisitor.cpp ├── tabstopsnodevisitor.h ├── ui2dw.pro ├── uiactionnode.cpp ├── uiactionnode.h ├── uiaddactionnode.cpp ├── uiaddactionnode.h ├── uiconnectionnode.cpp ├── uiconnectionnode.h ├── uilayoutitemnode.cpp ├── uilayoutitemnode.h ├── uilayoutnode.cpp ├── uilayoutnode.h ├── uinode.cpp ├── uinode.h ├── uinodevisitor.cpp ├── uinodevisitor.h ├── uiobjectnode.cpp ├── uiobjectnode.h ├── uipropertynode.cpp ├── uipropertynode.h ├── uispacernode.cpp ├── uispacernode.h ├── uitabstopsnode.cpp ├── uitabstopsnode.h ├── uitopnode.cpp ├── uitopnode.h ├── uiwidgetnode.cpp └── uiwidgetnode.h /.github/workflows/build-qt5.yml: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2025 Klarälvdalens Datakonsult AB, a KDAB Group company 2 | # 3 | # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only 4 | 5 | name: CI Qt 5 6 | 7 | on: 8 | push: 9 | branches: 10 | - master 11 | pull_request: 12 | branches: 13 | - master 14 | 15 | jobs: 16 | build: 17 | runs-on: ${{ matrix.os }} 18 | strategy: 19 | fail-fast: true 20 | matrix: 21 | os: 22 | - ubuntu-latest 23 | - windows-latest 24 | 25 | steps: 26 | - name: Install Qt 27 | uses: jurplel/install-qt-action@v4 28 | with: 29 | version: 5.15 30 | cache: true 31 | 32 | - name: Install dependencies 33 | if: ${{ runner.os == 'Linux' }} 34 | run: | 35 | sudo apt update -qq 36 | sudo apt install xvfb 37 | 38 | - name: Install ninja-build tool (must be after Qt due PATH changes) 39 | if: ${{ runner.os != 'macOS' }} 40 | uses: turtlesec-no/get-ninja@main 41 | 42 | - name: Install ninja-build tool (macOS) 43 | if: ${{ runner.os == 'macOS' }} 44 | run: brew install ninja 45 | 46 | - name: Checkout sources 47 | uses: actions/checkout@v4 48 | 49 | - name: Make sure MSVC is found when Ninja generator is in use 50 | if: ${{ runner.os == 'Windows' }} 51 | uses: ilammy/msvc-dev-cmd@v1 52 | 53 | - name: Build project (cmake) 54 | run: | 55 | cmake --preset=dev . 56 | cmake --build build-dev 57 | 58 | - name: Run tests (Linux) 59 | if: ${{ runner.os == 'Linux' }} 60 | run: xvfb-run ctest --test-dir ./build-dev --verbose 61 | env: 62 | DISPLAY: ":0" 63 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | declarativewidgets 2 | Makefile* 3 | moc_* 4 | *.o 5 | *.pro.user 6 | *.qmlc 7 | .qmake.stash 8 | qrc_*.cpp 9 | /lib/libdeclarativewidgets.so* 10 | /tests/target_wrapper.sh 11 | /tests/tst_declarativeview.moc 12 | /ui2dw/ui2dw 13 | /examples/bookstore/bookstore 14 | /examples/config-editor/config-editor 15 | /examples/text-editor/text-editor 16 | /extensionplugin/libdeclarativewidgetsplugin.so 17 | /tests/tests 18 | /build* 19 | /.cache/ 20 | /compile_commands.json 21 | bookstore.db 22 | /.qmlls.ini 23 | -------------------------------------------------------------------------------- /.krazy: -------------------------------------------------------------------------------- 1 | CHECKSETS qt5,c++,foss 2 | 3 | #KDAB-specific checks 4 | EXTRA kdabcopyright,kdabcommercial 5 | 6 | #additional checks 7 | EXTRA defines,null,camelcase 8 | 9 | #checks to exclude for now 10 | EXCLUDE style 11 | -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2025 Klarälvdalens Datakonsult AB, a KDAB Group company 2 | # 3 | # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only 4 | # See https://pre-commit.com for more information 5 | # See https://pre-commit.com/hooks.html for more hooks 6 | ci: 7 | autoupdate_schedule: monthly 8 | 9 | repos: 10 | - repo: https://github.com/pre-commit/pre-commit-hooks 11 | rev: v5.0.0 12 | hooks: 13 | - id: trailing-whitespace 14 | - id: end-of-file-fixer 15 | - id: check-added-large-files 16 | - id: check-case-conflict 17 | - id: check-xml 18 | - id: check-yaml 19 | args: [--allow-multiple-documents] 20 | - id: check-json 21 | - id: check-symlinks 22 | - id: destroyed-symlinks 23 | - id: check-executables-have-shebangs 24 | - repo: https://github.com/codespell-project/codespell 25 | rev: v2.4.1 26 | hooks: 27 | - id: codespell 28 | - repo: https://github.com/cheshirekow/cmake-format-precommit 29 | rev: v0.6.13 30 | hooks: 31 | - id: cmake-lint 32 | exclude: (.py.cmake|Doxyfile.cmake|examples/flutter/|tests/flutter/) 33 | - id: cmake-format 34 | exclude: (.py.cmake|Doxyfile.cmake|examples/flutter/|tests/flutter/) 35 | - repo: https://github.com/scop/pre-commit-shfmt 36 | rev: v3.10.0-2 37 | hooks: 38 | - id: shfmt 39 | -------------------------------------------------------------------------------- /.qmake.conf: -------------------------------------------------------------------------------- 1 | PLUGIN_DESTDIR = $$shadowed($$PWD/qml) 2 | DEFINES += PLUGIN_IMPORT_PATH=\"\\\"$${PLUGIN_DESTDIR}\\\"\" 3 | -------------------------------------------------------------------------------- /.zed/settings.json: -------------------------------------------------------------------------------- 1 | // Format on save disabled until clang-format qmllint is used 2 | // 3 | { 4 | "languages": { 5 | "C++": { 6 | "format_on_save": "off" 7 | }, 8 | "C": { 9 | "format_on_save": "off" 10 | }, 11 | "CMake": { 12 | "format_on_save": "off" 13 | }, 14 | "QML": { 15 | "format_on_save": "off" 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /CMakePresets.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "configurePresets": [ 4 | { 5 | "name": "base", 6 | "hidden": true, 7 | "generator": "Ninja", 8 | "binaryDir": "${sourceDir}/build-${presetName}", 9 | "cacheVariables": { 10 | "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", 11 | "USE_QT6": "OFF" 12 | } 13 | }, 14 | { 15 | "name": "dev", 16 | "inherits": "base", 17 | "cacheVariables": { 18 | "CMAKE_BUILD_TYPE": "Debug", 19 | "BUILD_TESTING": "ON" 20 | } 21 | }, 22 | { 23 | "name": "dev-asan", 24 | "inherits": "dev", 25 | "binaryDir": "${sourceDir}/build-${presetName}", 26 | "cacheVariables": { 27 | "ENABLE_SANITIZERS": "ON" 28 | } 29 | }, 30 | { 31 | "name": "rel", 32 | "inherits": "base", 33 | "binaryDir": "${sourceDir}/build-${presetName}", 34 | "cacheVariables": { 35 | "CMAKE_BUILD_TYPE": "RelWithDebInfo", 36 | "BUILD_TESTING": "OFF" 37 | } 38 | }, 39 | { 40 | "name": "dev6", 41 | "inherits": "dev", 42 | "binaryDir": "${sourceDir}/build-${presetName}", 43 | "cacheVariables": { 44 | "USE_QT6": "ON" 45 | } 46 | }, 47 | { 48 | "name": "dev-no-webengine6", 49 | "inherits": "dev6", 50 | "cacheVariables": { 51 | "LINK_TO_WEBENGINE_WIDGETS": "OFF" 52 | } 53 | }, 54 | { 55 | "name": "rel6", 56 | "inherits": "rel", 57 | "binaryDir": "${sourceDir}/build-${presetName}", 58 | "cacheVariables": { 59 | "USE_QT6": "ON" 60 | } 61 | }, 62 | { 63 | "name": "dev-asan6", 64 | "inherits": "dev6", 65 | "binaryDir": "${sourceDir}/build-${presetName}", 66 | "cacheVariables": { 67 | "ENABLE_SANITIZERS": "ON" 68 | } 69 | } 70 | ] 71 | } 72 | -------------------------------------------------------------------------------- /INSTALL.txt: -------------------------------------------------------------------------------- 1 | The DeclarativeWidgets software uses Qt's qmake buildsystem. 2 | 3 | To build this library you will need: 4 | - A C++11 compliant compiler 5 | - Qt5 built from the dev branch 6 | 7 | Building on Unix with gcc: 8 | % mkdir build 9 | % cd build 10 | % qmake -r ../declarativewidgets.pro 11 | % make 12 | % make install 13 | 14 | Building on Windows with Microsoft Visual Studio: 15 | % mkdir build 16 | % cd build 17 | % qmake -r ..\declarativewidgets.pro 18 | % nmake (or jom) 19 | % nmake install 20 | 21 | 22 | The installation will be made into your Qt5 which means 23 | you might need administrative powers (or sudo). 24 | Choose the qmake associated with the Qt5 you want to install to. 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | README.txt -------------------------------------------------------------------------------- /declarativewidgets.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | 3 | CONFIG += ordered 4 | 5 | SUBDIRS = src \ 6 | runner.pro \ 7 | examples \ 8 | tests \ 9 | ui2dw 10 | -------------------------------------------------------------------------------- /doc/DeclarativeWidgets-CopyrightAssignmentForm.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDABLabs/DeclarativeWidgets/66c6836b210a1ce7aee2971604525b4749af208e/doc/DeclarativeWidgets-CopyrightAssignmentForm.docx -------------------------------------------------------------------------------- /examples/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2025 Klarälvdalens Datakonsult AB, a KDAB Group 2 | # company 3 | # 4 | # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only 5 | 6 | if(USE_QT6) 7 | find_package(Qt6 6.5 NO_MODULE REQUIRED COMPONENTS Sql QuickWidgets) 8 | else() 9 | find_package(Qt5 5.15 NO_MODULE REQUIRED COMPONENTS Sql QuickWidgets) 10 | endif() 11 | 12 | add_subdirectory(bookstore) 13 | add_subdirectory(config-editor) 14 | add_subdirectory(text-editor) 15 | -------------------------------------------------------------------------------- /examples/bookstore/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2025 Klarälvdalens Datakonsult AB, a KDAB Group 2 | # company 3 | # 4 | # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only 5 | 6 | add_executable(bookstore main.cpp bookstore.cpp booksofauthormodel.cpp 7 | booklistproxymodel.cpp bookstore.qrc) 8 | 9 | target_link_libraries( 10 | bookstore PRIVATE Qt${QTMAJOR}::Qml Qt${QTMAJOR}::Widgets 11 | Qt${QTMAJOR}::QuickWidgets Qt${QTMAJOR}::Sql) 12 | 13 | if(Qt${QTMAJOR}WebEngineWidgets_FOUND) 14 | target_link_libraries(bookstore PRIVATE Qt${QTMAJOR}::WebEngineWidgets) 15 | endif() 16 | 17 | target_compile_definitions( 18 | bookstore PRIVATE -DPLUGIN_IMPORT_PATH=${DW_PLUGIN_IMPORT_PATH}) 19 | 20 | set(QML_FILES main.qml) 21 | -------------------------------------------------------------------------------- /examples/bookstore/README.txt: -------------------------------------------------------------------------------- 1 | Example Bookstore 2 | ================= 3 | 4 | The idea of this example is to show the alternative usage of QtQuick and Declarative Widgets on top of the same exported objects. 5 | 6 | The application can be run in a mode suitable for the staff of a book store as well as in a mode more suited for customer needs. 7 | -------------------------------------------------------------------------------- /examples/bookstore/booksofauthormodel.h: -------------------------------------------------------------------------------- 1 | /* 2 | booksofauthormodel.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2012-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef BOOKSOFAUTHORMODEL_H 29 | #define BOOKSOFAUTHORMODEL_H 30 | 31 | #include 32 | 33 | class BookStore; 34 | 35 | class BooksOfAuthorModel : public QSqlQueryModel 36 | { 37 | Q_OBJECT 38 | public: 39 | explicit BooksOfAuthorModel(BookStore *store = 0); 40 | 41 | public slots: 42 | void setAuthor(int authorId); 43 | 44 | private: 45 | void refresh(); 46 | 47 | BookStore *m_store; 48 | int m_authorId; 49 | }; 50 | 51 | #endif // BOOKSOFAUTHORMODEL_H 52 | -------------------------------------------------------------------------------- /examples/bookstore/bookstore.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDABLabs/DeclarativeWidgets/66c6836b210a1ce7aee2971604525b4749af208e/examples/bookstore/bookstore.db -------------------------------------------------------------------------------- /examples/bookstore/bookstore.pro: -------------------------------------------------------------------------------- 1 | include("$$PWD/../examples.pri") 2 | 3 | QT += sql quickwidgets 4 | 5 | SOURCES += \ 6 | main.cpp \ 7 | bookstore.cpp \ 8 | booksofauthormodel.cpp \ 9 | booklistproxymodel.cpp 10 | 11 | HEADERS += \ 12 | bookstore.h \ 13 | booksofauthormodel.h \ 14 | booklistproxymodel.h 15 | 16 | OTHER_FILES += \ 17 | README.txt \ 18 | qtquick/Shop.qml \ 19 | widgets/Admin.qml \ 20 | widgets/Developer.qml \ 21 | widgets/Staff.qml 22 | 23 | RESOURCES += \ 24 | bookstore.qrc 25 | 26 | mac { 27 | QT_WIDGETS.files = $${PLUGIN_DESTDIR} 28 | QT_WIDGETS.path = Contents/PlugIns 29 | QMAKE_BUNDLE_DATA += QT_WIDGETS 30 | } 31 | -------------------------------------------------------------------------------- /examples/bookstore/bookstore.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | bookstore.db 4 | qtquick/Shop.qml 5 | widgets/Admin.qml 6 | widgets/Developer.qml 7 | widgets/Staff.qml 8 | 9 | 10 | -------------------------------------------------------------------------------- /examples/bookstore/widgets/Admin.qml: -------------------------------------------------------------------------------- 1 | /* 2 | Admin.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Widget { 31 | windowTitle: qsTr("Book Store") 32 | geometry: Qt.rect(0, 0, 800, 600) 33 | 34 | VBoxLayout { 35 | TabWidget { 36 | TableView { 37 | TabWidget.label: "Author" 38 | model: _store.authorTable; 39 | } 40 | TableView { 41 | TabWidget.label: "Book" 42 | model: _store.bookTable; 43 | } 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /examples/bookstore/widgets/Staff.qml: -------------------------------------------------------------------------------- 1 | /* 2 | Staff.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtQuick 2.0 29 | import QtWidgets 1.0 30 | 31 | Widget { 32 | windowTitle: qsTr("Book Store") 33 | geometry: Qt.rect(0, 0, 800, 600) 34 | 35 | HBoxLayout { 36 | TableView { 37 | id: storeAuthorTable 38 | 39 | model: _store.authorTable; 40 | 41 | Component.onCompleted: 42 | storeAuthorTable.hideColumn(0) 43 | 44 | onActivated: _store.booksOfAuthorTable.setAuthor(_store.authorId(index)) 45 | } 46 | TableView { 47 | id: storeBooksOfAuthorTable 48 | 49 | model: _store.booksOfAuthorTable 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /examples/config-editor/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2025 Klarälvdalens Datakonsult AB, a KDAB Group 2 | # company 3 | # 4 | # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only 5 | 6 | add_executable(config-editor main.cpp configeditor.cpp settingsadaptor.cpp 7 | config-editor.qrc) 8 | 9 | target_link_libraries(config-editor PRIVATE Qt${QTMAJOR}::Qml 10 | Qt${QTMAJOR}::Widgets) 11 | 12 | if(Qt${QTMAJOR}WebEngineWidgets_FOUND) 13 | target_link_libraries(config-editor PRIVATE Qt${QTMAJOR}::WebEngineWidgets) 14 | endif() 15 | 16 | target_compile_definitions( 17 | config-editor PRIVATE -DPLUGIN_IMPORT_PATH=${DW_PLUGIN_IMPORT_PATH}) 18 | 19 | set(QML_FILES main.qml) 20 | -------------------------------------------------------------------------------- /examples/config-editor/README.txt: -------------------------------------------------------------------------------- 1 | This example demonstrates runtime loading of UI that was not provided by the application vendor. 2 | 3 | The application is a simple configuration editor which can either load configuration files as text, 4 | or, if there is a QML file with a matching name in the same directory or a standard data location, 5 | allow editing through the custom UI provided by that QML file. 6 | 7 | The demodata directory contains a simple configuration file with suitable DeclarativeWidget based 8 | custom editor. 9 | The program in question can be configured for one of three database backends, each with its own options. 10 | -------------------------------------------------------------------------------- /examples/config-editor/config-editor.pro: -------------------------------------------------------------------------------- 1 | include("$$PWD/../examples.pri") 2 | 3 | TARGET = config-editor 4 | 5 | SOURCES += main.cpp \ 6 | configeditor.cpp \ 7 | settingsadaptor.cpp 8 | 9 | OTHER_FILES += \ 10 | main.qml \ 11 | demodata/akonadiserverrc-editor.qml \ 12 | README.txt 13 | 14 | RESOURCES += \ 15 | config-editor.qrc 16 | 17 | HEADERS += \ 18 | configeditor.h \ 19 | settingsadaptor.h 20 | 21 | mac { 22 | QT_WIDGETS.files = $${PLUGIN_DESTDIR} 23 | QT_WIDGETS.path = Contents/PlugIns 24 | QMAKE_BUNDLE_DATA += QT_WIDGETS 25 | } 26 | -------------------------------------------------------------------------------- /examples/config-editor/config-editor.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | main.qml 4 | 5 | 6 | -------------------------------------------------------------------------------- /examples/config-editor/demodata/akonadiserverrc: -------------------------------------------------------------------------------- 1 | [%General] 2 | Driver=QMYSQL 3 | SizeThreshold=4096 4 | ExternalPayload=true 5 | 6 | [QMYSQL] 7 | Name=akonadi 8 | User= 9 | Password= 10 | Options="UNIX_SOCKET=/home/username/.local/share/akonadi/socket-hostname/mysql.socket" 11 | ServerPath=/usr/sbin/mysqld 12 | StartServer=true 13 | Host= 14 | 15 | [Debug] 16 | Tracer=null 17 | -------------------------------------------------------------------------------- /examples/declarativeview_qqtest.qml: -------------------------------------------------------------------------------- 1 | /* 2 | declarativeview_qqtest.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2012-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtQuick 2.0 29 | 30 | Rectangle { 31 | width: 600 32 | height: 400 33 | 34 | color: "lightsteelblue" 35 | 36 | Text { 37 | text: qsTr("Click anywhere on rectangle to clear text") 38 | 39 | anchors.top: parent.top 40 | anchors.horizontalCenter: parent.horizontalCenter 41 | 42 | font.pointSize: 24 43 | } 44 | 45 | Text { 46 | text: _textInput.text 47 | 48 | anchors.centerIn: parent 49 | 50 | font.pointSize: 48 51 | } 52 | 53 | MouseArea { 54 | anchors.fill: parent 55 | 56 | onClicked: _textInput.clear() 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /examples/examples.pri: -------------------------------------------------------------------------------- 1 | TEMPLATE = app 2 | DEPENDPATH += . 3 | INCLUDEPATH += . 4 | QT += qml widgets 5 | -------------------------------------------------------------------------------- /examples/examples.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | 3 | SUBDIRS += text-editor bookstore config-editor 4 | 5 | OTHER_FILES += \ 6 | animation.qml \ 7 | browser.qml \ 8 | declarativeview.qml \ 9 | declarativeview_qqtest.qml \ 10 | dialogs.qml \ 11 | editor.qml \ 12 | gallery.qml \ 13 | layouts.qml \ 14 | test.qml \ 15 | messagebox.qml \ 16 | filedialog.qml \ 17 | widgetproperties.qml 18 | -------------------------------------------------------------------------------- /examples/text-editor/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2025 Klarälvdalens Datakonsult AB, a KDAB Group 2 | # company 3 | # 4 | # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only 5 | 6 | add_executable(text-editor main.cpp editor.cpp text-editor.qrc) 7 | 8 | target_link_libraries(text-editor PRIVATE Qt${QTMAJOR}::Qml 9 | Qt${QTMAJOR}::Widgets) 10 | 11 | if(Qt${QTMAJOR}WebEngineWidgets_FOUND) 12 | target_link_libraries(text-editor PRIVATE Qt${QTMAJOR}::WebEngineWidgets) 13 | endif() 14 | 15 | target_compile_definitions( 16 | text-editor PRIVATE -DPLUGIN_IMPORT_PATH=${DW_PLUGIN_IMPORT_PATH}) 17 | 18 | set(QML_FILES main.qml) 19 | -------------------------------------------------------------------------------- /examples/text-editor/editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDABLabs/DeclarativeWidgets/66c6836b210a1ce7aee2971604525b4749af208e/examples/text-editor/editor.png -------------------------------------------------------------------------------- /examples/text-editor/text-editor.pro: -------------------------------------------------------------------------------- 1 | include("$$PWD/../examples.pri") 2 | 3 | # Input 4 | SOURCES += \ 5 | main.cpp \ 6 | editor.cpp 7 | 8 | HEADERS += \ 9 | editor.h 10 | 11 | RESOURCES += \ 12 | text-editor.qrc 13 | 14 | OTHER_FILES += \ 15 | main.qml 16 | 17 | mac { 18 | QT_WIDGETS.files = $${PLUGIN_DESTDIR} 19 | QT_WIDGETS.path = Contents/PlugIns 20 | QMAKE_BUNDLE_DATA += QT_WIDGETS 21 | } 22 | -------------------------------------------------------------------------------- /examples/text-editor/text-editor.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | main.qml 4 | editor.png 5 | 6 | 7 | -------------------------------------------------------------------------------- /qwidgets.list: -------------------------------------------------------------------------------- 1 | // dialogs 2 | qpagesetupdialog.h 3 | qprintdialog.h 4 | qprintpreviewdialog.h 5 | qprogressdialog.h 6 | 7 | // widgets 8 | qdockwidget.h 9 | qfocusframe.h 10 | qfontcombobox.h 11 | qgraphicsview.h 12 | qgraphicswidget.h 13 | qheaderview.h 14 | qlistwidget.h 15 | qmdiarea.h 16 | qmdisubwindow.h 17 | qprintpreviewwidget.h 18 | qsplashscreen.h 19 | qsplitter.h 20 | qtabbar.h 21 | qtablewidget.h 22 | qtoolbox.h 23 | qtreewidget.h 24 | qundoview.h 25 | qwizard.h 26 | -------------------------------------------------------------------------------- /runner.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = app 2 | TARGET = declarativewidgets 3 | DEPENDPATH += . 4 | INCLUDEPATH += . 5 | 6 | macx:CONFIG -= app_bundle 7 | 8 | QT += qml widgets 9 | 10 | # Input 11 | SOURCES += \ 12 | main.cpp 13 | -------------------------------------------------------------------------------- /src/declarativeaction.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | declarativeaction.cpp 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2012-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Tobias Koenig 8 | Author: Kevin Krammer 9 | 10 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 11 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 12 | 13 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 14 | 15 | This program is free software; you can redistribute it and/or modify 16 | it under the terms of the GNU General Public License as published by 17 | the Free Software Foundation, either version 2 of the License, or 18 | (at your option) any later version. 19 | 20 | This program is distributed in the hope that it will be useful, 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 | GNU General Public License for more details. 24 | 25 | You should have received a copy of the GNU General Public License 26 | along with this program. If not, see . 27 | */ 28 | 29 | #include "declarativeaction_p.h" 30 | 31 | DeclarativeAction::DeclarativeAction(QObject *parent) 32 | : QAction(parent) 33 | { 34 | } 35 | -------------------------------------------------------------------------------- /src/declarativeaction_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | declarativeaction_p.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2012-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Tobias Koenig 8 | Author: Kevin Krammer 9 | 10 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 11 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 12 | 13 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 14 | 15 | This program is free software; you can redistribute it and/or modify 16 | it under the terms of the GNU General Public License as published by 17 | the Free Software Foundation, either version 2 of the License, or 18 | (at your option) any later version. 19 | 20 | This program is distributed in the hope that it will be useful, 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 | GNU General Public License for more details. 24 | 25 | You should have received a copy of the GNU General Public License 26 | along with this program. If not, see . 27 | */ 28 | 29 | #ifndef DECLARATIVEACTION_P_H 30 | #define DECLARATIVEACTION_P_H 31 | 32 | #include 33 | 34 | #include 35 | 36 | class DeclarativeAction : public QAction 37 | { 38 | Q_OBJECT 39 | 40 | public: 41 | explicit DeclarativeAction(QObject *parent = 0); 42 | }; 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /src/declarativecontainerwidgetextension_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | declarativecontainerwidgetextension_p.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef DECLARATIVECONTAINERWIDGETEXTENSION_P_H 29 | #define DECLARATIVECONTAINERWIDGETEXTENSION_P_H 30 | 31 | //#include 32 | #include "declarativewidgetextension.h" 33 | 34 | template 35 | class DeclarativeContainerWidgetExtension : public DeclarativeWidgetExtension 36 | { 37 | public: 38 | explicit DeclarativeContainerWidgetExtension(QObject *parent = 0) 39 | : DeclarativeWidgetExtension(new T(parent), parent) 40 | {} 41 | }; 42 | 43 | #endif // DECLARATIVECONTAINERWIDGETEXTENSION_P_H 44 | -------------------------------------------------------------------------------- /src/declarativeline_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | declarativeline_p.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2014-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef DECLARATIVELINE_P_H 29 | #define DECLARATIVELINE_P_H 30 | 31 | #include 32 | #include 33 | 34 | class DeclarativeLine : public QFrame 35 | { 36 | Q_OBJECT 37 | Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged) 38 | 39 | public: 40 | explicit DeclarativeLine(QWidget *parent = 0); 41 | 42 | void setOrientation(Qt::Orientation orient); 43 | Qt::Orientation orientation() const; 44 | 45 | Q_SIGNALS: 46 | void orientationChanged(); 47 | }; 48 | 49 | #endif // DECLARATIVELINE_P_H 50 | -------------------------------------------------------------------------------- /src/declarativeqmlcontext_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | declarativeqmlcontext_p.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef DECLARATIVEQMLCONTEXT_P_H 29 | #define DECLARATIVEQMLCONTEXT_P_H 30 | 31 | #include 32 | #include "declarativeobjectproxy_p.h" 33 | 34 | #include "objectadaptors_p.h" 35 | 36 | class DeclarativeQmlContext : public DeclarativeObjectProxy 37 | { 38 | public: 39 | explicit DeclarativeQmlContext(QObject *parent = 0); 40 | 41 | protected: 42 | void createProxiedObject() const; 43 | 44 | void dataAppend(QObject *object); 45 | }; 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /src/declarativeseparator.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | declarativeseparator.cpp 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2012-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Tobias Koenig 8 | Author: Kevin Krammer 9 | 10 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 11 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 12 | 13 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 14 | 15 | This program is free software; you can redistribute it and/or modify 16 | it under the terms of the GNU General Public License as published by 17 | the Free Software Foundation, either version 2 of the License, or 18 | (at your option) any later version. 19 | 20 | This program is distributed in the hope that it will be useful, 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 | GNU General Public License for more details. 24 | 25 | You should have received a copy of the GNU General Public License 26 | along with this program. If not, see . 27 | */ 28 | 29 | #include "declarativeseparator_p.h" 30 | 31 | DeclarativeSeparator::DeclarativeSeparator(QObject *parent) 32 | : QAction(parent) 33 | { 34 | setSeparator(true); 35 | } 36 | -------------------------------------------------------------------------------- /src/declarativeseparator_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | declarativeseparator_p.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2012-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Tobias Koenig 8 | Author: Kevin Krammer 9 | 10 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 11 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 12 | 13 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 14 | 15 | This program is free software; you can redistribute it and/or modify 16 | it under the terms of the GNU General Public License as published by 17 | the Free Software Foundation, either version 2 of the License, or 18 | (at your option) any later version. 19 | 20 | This program is distributed in the hope that it will be useful, 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 | GNU General Public License for more details. 24 | 25 | You should have received a copy of the GNU General Public License 26 | along with this program. If not, see . 27 | */ 28 | 29 | #ifndef DECLARATIVESEPARATOR_P_H 30 | #define DECLARATIVESEPARATOR_P_H 31 | 32 | #include 33 | #include 34 | 35 | class DeclarativeSeparator : public QAction 36 | { 37 | Q_OBJECT 38 | 39 | public: 40 | explicit DeclarativeSeparator(QObject *parent = 0); 41 | }; 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /src/declarativewidgets_plugin.h: -------------------------------------------------------------------------------- 1 | /* 2 | declarativewidgets_plugin.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | Author: Nathan Collins 9 | 10 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 11 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 12 | 13 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 14 | 15 | This program is free software; you can redistribute it and/or modify 16 | it under the terms of the GNU General Public License as published by 17 | the Free Software Foundation, either version 2 of the License, or 18 | (at your option) any later version. 19 | 20 | This program is distributed in the hope that it will be useful, 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 | GNU General Public License for more details. 24 | 25 | You should have received a copy of the GNU General Public License 26 | along with this program. If not, see . 27 | */ 28 | 29 | #ifndef DECLARATIVEWIDGETS_PLUGIN_H 30 | #define DECLARATIVEWIDGETS_PLUGIN_H 31 | 32 | #include 33 | 34 | class ExtensionpluginPlugin : public QQmlExtensionPlugin 35 | { 36 | Q_OBJECT 37 | Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") 38 | 39 | public: 40 | void registerTypes(const char *uri); 41 | }; 42 | 43 | #endif // DECLARATIVEWIDGETS_PLUGIN_H 44 | 45 | -------------------------------------------------------------------------------- /src/defaultwidgetcontainer.h: -------------------------------------------------------------------------------- 1 | /* 2 | defaultwidgetcontainer.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef DEFAULTWIDGETCONTAINER_H 29 | #define DEFAULTWIDGETCONTAINER_H 30 | 31 | #include "widgetcontainerinterface_p.h" 32 | #include 33 | 34 | class DefaultWidgetContainer : public WidgetContainerInterface 35 | { 36 | public: 37 | explicit DefaultWidgetContainer(QWidget *widget); 38 | ~DefaultWidgetContainer(); 39 | 40 | void addAction(QAction *action); 41 | void setLayout(QLayout *layout); 42 | void addWidget(QWidget *widget); 43 | 44 | protected: 45 | QWidget *const m_widget; 46 | }; 47 | 48 | #endif // DEFAULTWIDGETCONTAINER_H 49 | -------------------------------------------------------------------------------- /src/mainwindowwidgetcontainer_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | mainwindowwidgetcontainer_p.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef MAINWINDOWWIDGETCONTAINER_P_H 29 | #define MAINWINDOWWIDGETCONTAINER_P_H 30 | 31 | #include 32 | #include "defaultwidgetcontainer.h" 33 | 34 | QT_BEGIN_NAMESPACE 35 | class QMainWindow; 36 | class QObject; 37 | QT_END_NAMESPACE 38 | 39 | class MainWindowWidgetContainer : public DefaultWidgetContainer 40 | { 41 | public: 42 | explicit MainWindowWidgetContainer(QObject *parent = 0); 43 | 44 | void setLayout(QLayout *layout); 45 | void addWidget(QWidget *widget); 46 | 47 | private: 48 | QMainWindow *extendedMainWindow() const; 49 | }; 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /src/menuwidgetcontainer_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | menuwidgetcontainer_p.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef MENUWIDGETCONTAINER_P_H 29 | #define MENUWIDGETCONTAINER_P_H 30 | 31 | #include 32 | #include "defaultwidgetcontainer.h" 33 | 34 | QT_BEGIN_NAMESPACE 35 | class QMenu; 36 | class QObject; 37 | QT_END_NAMESPACE 38 | 39 | class MenuWidgetContainer : public DefaultWidgetContainer 40 | { 41 | public: 42 | explicit MenuWidgetContainer(QObject *parent = 0); 43 | 44 | void addAction(QAction *action); 45 | void setLayout(QLayout *layout); 46 | void addWidget(QWidget *widget); 47 | 48 | private: 49 | QMenu *extendedMenu() const; 50 | }; 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /src/objectcontainerinterface_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | objectcontainerinterface_p.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef OBJECTCONTAINERINTERFACE_H 29 | #define OBJECTCONTAINERINTERFACE_H 30 | 31 | #include 32 | 33 | QT_BEGIN_NAMESPACE 34 | class QObject; 35 | QT_END_NAMESPACE 36 | 37 | class ObjectContainerInterface 38 | { 39 | public: 40 | virtual ~ObjectContainerInterface() {} 41 | 42 | virtual void dataAppend(QObject *object) = 0; 43 | virtual int dataCount() const = 0; 44 | virtual QObject *dataAt(int index) const = 0; 45 | virtual void dataClear() = 0; 46 | }; 47 | 48 | #endif // OBJECTCONTAINERINTERFACE_H 49 | -------------------------------------------------------------------------------- /src/qmldir: -------------------------------------------------------------------------------- 1 | module QtWidgets 2 | plugin declarativewidgets 3 | -------------------------------------------------------------------------------- /src/qt6compat_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 3 | 4 | Copyright (C) 2025 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 5 | 6 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 7 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 8 | 9 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 10 | 11 | This program is free software; you can redistribute it and/or modify 12 | it under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 2 of the License, or 14 | (at your option) any later version. 15 | 16 | This program is distributed in the hope that it will be useful, 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | GNU General Public License for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with this program. If not, see . 23 | */ 24 | 25 | #pragma once 26 | 27 | #include 28 | 29 | #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) 30 | #define intQt6compat qsizetype 31 | #else 32 | #define intQt6compat int 33 | #endif 34 | -------------------------------------------------------------------------------- /src/scrollareawidgetcontainer_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | scrollareawidgetcontainer_p.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef SCROLLAREAWIDGETCONTAINER_P_H 29 | #define SCROLLAREAWIDGETCONTAINER_P_H 30 | 31 | #include 32 | #include "defaultwidgetcontainer.h" 33 | 34 | QT_BEGIN_NAMESPACE 35 | class QObject; 36 | class QScrollArea; 37 | QT_END_NAMESPACE 38 | 39 | class ScrollAreaWidgetContainer : public DefaultWidgetContainer 40 | { 41 | public: 42 | explicit ScrollAreaWidgetContainer(QObject *parent = 0); 43 | 44 | void setLayout(QLayout *layout); 45 | void addWidget(QWidget *widget); 46 | 47 | private: 48 | QScrollArea *extendedScrollArea() const; 49 | }; 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /src/widgetcontainerinterface_p.h: -------------------------------------------------------------------------------- 1 | /* 2 | widgetcontainerinterface_p.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef WIDGETCONTAINERINTERFACE_P_H 29 | #define WIDGETCONTAINERINTERFACE_P_H 30 | 31 | #include 32 | 33 | QT_BEGIN_NAMESPACE 34 | class QAction; 35 | class QLayout; 36 | class QWidget; 37 | QT_END_NAMESPACE 38 | 39 | class WidgetContainerInterface 40 | { 41 | public: 42 | virtual ~WidgetContainerInterface() {} 43 | 44 | virtual void addAction(QAction *action) = 0; 45 | virtual void setLayout(QLayout *layout) = 0; 46 | virtual void addWidget(QWidget *widget) = 0; 47 | }; 48 | 49 | #endif // WIDGETCONTAINERINTERFACE_P_H 50 | -------------------------------------------------------------------------------- /tests/auto/auto.pri: -------------------------------------------------------------------------------- 1 | QT += testlib qml widgets 2 | 3 | CONFIG += qt console warn_on depend_includepath testcase parallel_test 4 | macos:CONFIG -= app_bundle 5 | -------------------------------------------------------------------------------- /tests/auto/auto.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | 3 | SUBDIRS = \ 4 | quickwidget \ 5 | instantiatetypes \ 6 | layouts \ 7 | qmlplugins 8 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/.gitignore: -------------------------------------------------------------------------------- 1 | # This file is used to ignore files which are generated 2 | # ---------------------------------------------------------------------------- 3 | 4 | *~ 5 | *.autosave 6 | *.a 7 | *.core 8 | *.moc 9 | *.o 10 | *.obj 11 | *.orig 12 | *.rej 13 | *.so 14 | *.so.* 15 | *_pch.h.cpp 16 | *_resource.rc 17 | *.qm 18 | .#* 19 | *.*# 20 | core 21 | !core/ 22 | tags 23 | .DS_Store 24 | .directory 25 | *.debug 26 | Makefile* 27 | *.prl 28 | *.app 29 | moc_*.cpp 30 | ui_*.h 31 | qrc_*.cpp 32 | Thumbs.db 33 | *.res 34 | *.rc 35 | /.qmake.cache 36 | /.qmake.stash 37 | 38 | # qtcreator generated files 39 | *.pro.user* 40 | 41 | # xemacs temporary files 42 | *.flc 43 | 44 | # Vim temporary files 45 | .*.swp 46 | 47 | # Visual Studio generated files 48 | *.ib_pdb_index 49 | *.idb 50 | *.ilk 51 | *.pdb 52 | *.sln 53 | *.suo 54 | *.vcproj 55 | *vcproj.*.*.user 56 | *.ncb 57 | *.sdf 58 | *.opensdf 59 | *.vcxproj 60 | *vcxproj.* 61 | 62 | # MinGW generated files 63 | *.Debug 64 | *.Release 65 | 66 | # Python byte code 67 | *.pyc 68 | 69 | # Binaries 70 | # -------- 71 | *.dll 72 | *.exe 73 | 74 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/instantiatetypes.pro: -------------------------------------------------------------------------------- 1 | include("$$PWD/../auto.pri") 2 | 3 | qtHaveModule(webenginewidgets) { 4 | QT += webenginewidgets 5 | } 6 | 7 | SOURCES += tst_instantiatetypes.cpp 8 | 9 | RESOURCES += \ 10 | qml.qrc 11 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/core/StringListModel.qml: -------------------------------------------------------------------------------- 1 | /* 2 | StringListModel.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | StringListModel { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/core/Timer.qml: -------------------------------------------------------------------------------- 1 | /* 2 | Timer.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Timer { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/layouts/FormLayout.qml: -------------------------------------------------------------------------------- 1 | /* 2 | FormLayout.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | FormLayout { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/layouts/GridLayout.qml: -------------------------------------------------------------------------------- 1 | /* 2 | GridLayout.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | GridLayout { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/layouts/HBoxLayout.qml: -------------------------------------------------------------------------------- 1 | /* 2 | HBoxLayout.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | HBoxLayout { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/layouts/StackedLayout.qml: -------------------------------------------------------------------------------- 1 | /* 2 | StackedLayout.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | StackedLayout { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/layouts/VBoxLayout.qml: -------------------------------------------------------------------------------- 1 | /* 2 | VBoxLayout.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | VBoxLayout { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/objects/Action.qml: -------------------------------------------------------------------------------- 1 | /* 2 | Action.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Action { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/objects/ActionItem.qml: -------------------------------------------------------------------------------- 1 | /* 2 | ActionItem.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | ActionItem { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/objects/ButtonGroup.qml: -------------------------------------------------------------------------------- 1 | /* 2 | ButtonGroup.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | ButtonGroup { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/objects/FileSystemModel.qml: -------------------------------------------------------------------------------- 1 | /* 2 | FileSystemModel.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | FileSystemModel { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/objects/Icon.qml: -------------------------------------------------------------------------------- 1 | /* 2 | Icon.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Icon { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/objects/QmlContext.qml: -------------------------------------------------------------------------------- 1 | /* 2 | QmlContext.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | QmlContext { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/objects/QmlContextProperty.qml: -------------------------------------------------------------------------------- 1 | /* 2 | QmlContextProperty.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | QmlContextProperty { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/objects/Separator.qml: -------------------------------------------------------------------------------- 1 | /* 2 | Separator.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Separator { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/objects/TabStops.qml: -------------------------------------------------------------------------------- 1 | /* 2 | TabStops.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | TabStops { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/webenginewidgets/WebEngineView.qml: -------------------------------------------------------------------------------- 1 | /* 2 | WebEngineView.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | WebEngineView { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/CalendarWidget.qml: -------------------------------------------------------------------------------- 1 | /* 2 | CalendarWidget.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | CalendarWidget { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/CheckBox.qml: -------------------------------------------------------------------------------- 1 | /* 2 | CheckBox.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | CheckBox { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/ColorDialog.qml: -------------------------------------------------------------------------------- 1 | /* 2 | ColorDialog.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | ColorDialog { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/ColumnView.qml: -------------------------------------------------------------------------------- 1 | /* 2 | ColumnView.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | ColumnView { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/ComboBox.qml: -------------------------------------------------------------------------------- 1 | /* 2 | ComboBox.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | ComboBox { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/CommandLinkButton.qml: -------------------------------------------------------------------------------- 1 | /* 2 | CommandLinkButton.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | CommandLinkButton { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/DateEdit.qml: -------------------------------------------------------------------------------- 1 | /* 2 | DateEdit.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | DateEdit { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/DateTimeEdit.qml: -------------------------------------------------------------------------------- 1 | /* 2 | DateTimeEdit.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | DateTimeEdit { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/Dial.qml: -------------------------------------------------------------------------------- 1 | /* 2 | Dial.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Dial { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/Dialog.qml: -------------------------------------------------------------------------------- 1 | /* 2 | Dialog.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Dialog { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/DialogButtonBox.qml: -------------------------------------------------------------------------------- 1 | /* 2 | DialogButtonBox.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | DialogButtonBox { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/DoubleSpinBox.qml: -------------------------------------------------------------------------------- 1 | /* 2 | DoubleSpinBox.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | DoubleSpinBox { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/FileDialog.qml: -------------------------------------------------------------------------------- 1 | /* 2 | FileDialog.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | FileDialog { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/FontDialog.qml: -------------------------------------------------------------------------------- 1 | /* 2 | FontDialog.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | FontDialog { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/Frame.qml: -------------------------------------------------------------------------------- 1 | /* 2 | Frame.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Frame { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/GroupBox.qml: -------------------------------------------------------------------------------- 1 | /* 2 | GroupBox.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | GroupBox { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/InputDialog.qml: -------------------------------------------------------------------------------- 1 | /* 2 | InputDialog.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | InputDialog { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/LCDNumber.qml: -------------------------------------------------------------------------------- 1 | /* 2 | LCDNumber.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | LCDNumber { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/Label.qml: -------------------------------------------------------------------------------- 1 | /* 2 | Label.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Label { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/LineEdit.qml: -------------------------------------------------------------------------------- 1 | /* 2 | LineEdit.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | LineEdit { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/ListView.qml: -------------------------------------------------------------------------------- 1 | /* 2 | ListView.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | ListView { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/MainWindow.qml: -------------------------------------------------------------------------------- 1 | /* 2 | MainWindow.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | MainWindow { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/Menu.qml: -------------------------------------------------------------------------------- 1 | /* 2 | Menu.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Menu { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/MenuBar.qml: -------------------------------------------------------------------------------- 1 | /* 2 | MenuBar.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | MenuBar { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/MessageBox.qml: -------------------------------------------------------------------------------- 1 | /* 2 | MessageBox.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | MessageBox { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/PlainTextEdit.qml: -------------------------------------------------------------------------------- 1 | /* 2 | PlainTextEdit.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | PlainTextEdit { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/ProgressBar.qml: -------------------------------------------------------------------------------- 1 | /* 2 | ProgressBar.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | ProgressBar { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/PushButton.qml: -------------------------------------------------------------------------------- 1 | /* 2 | PushButton.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | PushButton { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/QuickWidget.qml: -------------------------------------------------------------------------------- 1 | /* 2 | QuickWidget.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | QuickWidget { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/RadioButton.qml: -------------------------------------------------------------------------------- 1 | /* 2 | RadioButton.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | RadioButton { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/ScrollArea.qml: -------------------------------------------------------------------------------- 1 | /* 2 | ScrollArea.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | ScrollArea { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/ScrollBar.qml: -------------------------------------------------------------------------------- 1 | /* 2 | ScrollBar.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | ScrollBar { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/Slider.qml: -------------------------------------------------------------------------------- 1 | /* 2 | Slider.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Slider { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/SpinBox.qml: -------------------------------------------------------------------------------- 1 | /* 2 | SpinBox.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | SpinBox { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/StackedWidget.qml: -------------------------------------------------------------------------------- 1 | /* 2 | StackedWidget.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | StackedWidget { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/StatusBar.qml: -------------------------------------------------------------------------------- 1 | /* 2 | StatusBar.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | StatusBar { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/TabWidget.qml: -------------------------------------------------------------------------------- 1 | /* 2 | TabWidget.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | TabWidget { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/TableView.qml: -------------------------------------------------------------------------------- 1 | /* 2 | TableView.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | TableView { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/TextBrowser.qml: -------------------------------------------------------------------------------- 1 | /* 2 | TextBrowser.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | TextBrowser { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/TextEdit.qml: -------------------------------------------------------------------------------- 1 | /* 2 | TextEdit.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | TextEdit { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/TimeEdit.qml: -------------------------------------------------------------------------------- 1 | /* 2 | TimeEdit.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | TimeEdit { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/ToolBar.qml: -------------------------------------------------------------------------------- 1 | /* 2 | ToolBar.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | ToolBar { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/ToolButton.qml: -------------------------------------------------------------------------------- 1 | /* 2 | ToolButton.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | ToolButton { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/TreeView.qml: -------------------------------------------------------------------------------- 1 | /* 2 | TreeView.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | TreeView { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/creatable/widgets/Widget.qml: -------------------------------------------------------------------------------- 1 | /* 2 | Widget.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Widget { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/uncreatable/AbstractItemModel.qml: -------------------------------------------------------------------------------- 1 | /* 2 | AbstractItemModel.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | AbstractItemModel { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/uncreatable/HeaderView.qml: -------------------------------------------------------------------------------- 1 | /* 2 | HeaderView.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | HeaderView { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/uncreatable/ItemSelectionModel.qml: -------------------------------------------------------------------------------- 1 | /* 2 | ItemSelectionModel.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | ItemSelectionModel { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/instantiatetypes/qml/uncreatable/TextDocument.qml: -------------------------------------------------------------------------------- 1 | /* 2 | TextDocument.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | TextDocument { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /tests/auto/layouts/formlayout.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | FormLayoutWidget 4 | 5 | 6 | 7 | 8 | 9 | TextLabel 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | TextLabel 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | TextLabel 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /tests/auto/layouts/formlayoutwidget.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | formlayoutwidget.cpp 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #include "formlayoutwidget.h" 29 | 30 | #include "ui_formlayout.h" 31 | 32 | FormLayoutWidget::FormLayoutWidget(QWidget *parent) 33 | : QWidget(parent) 34 | , m_ui(new Ui::FormLayoutWidget) 35 | { 36 | m_ui->setupUi(this); 37 | } 38 | 39 | FormLayoutWidget::~FormLayoutWidget() 40 | { 41 | delete m_ui; 42 | } 43 | -------------------------------------------------------------------------------- /tests/auto/layouts/formlayoutwidget.h: -------------------------------------------------------------------------------- 1 | /* 2 | formlayoutwidget.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef FORMLAYOUTWIDGET_H 29 | #define FORMLAYOUTWIDGET_H 30 | 31 | #include 32 | 33 | QT_BEGIN_NAMESPACE 34 | namespace Ui 35 | { 36 | class FormLayoutWidget; 37 | } 38 | QT_END_NAMESPACE 39 | 40 | class FormLayoutWidget : public QWidget 41 | { 42 | Q_OBJECT 43 | public: 44 | explicit FormLayoutWidget(QWidget *parent = nullptr); 45 | ~FormLayoutWidget(); 46 | 47 | private: 48 | Ui::FormLayoutWidget* m_ui; 49 | }; 50 | 51 | #endif // FORMLAYOUTWIDGET_H 52 | -------------------------------------------------------------------------------- /tests/auto/layouts/gridlayoutwidget.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | gridlayoutwidget.cpp 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #include "gridlayoutwidget.h" 29 | 30 | #include "ui_gridlayout.h" 31 | 32 | GridLayoutWidget::GridLayoutWidget(QWidget *parent) 33 | : QWidget(parent) 34 | , m_ui(new Ui::GridLayoutWidget) 35 | { 36 | m_ui->setupUi(this); 37 | } 38 | 39 | GridLayoutWidget::~GridLayoutWidget() 40 | { 41 | delete m_ui; 42 | } 43 | -------------------------------------------------------------------------------- /tests/auto/layouts/gridlayoutwidget.h: -------------------------------------------------------------------------------- 1 | /* 2 | gridlayoutwidget.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef GRIDLAYOUTWIDGET_H 29 | #define GRIDLAYOUTWIDGET_H 30 | 31 | #include 32 | 33 | QT_BEGIN_NAMESPACE 34 | namespace Ui 35 | { 36 | class GridLayoutWidget; 37 | } 38 | QT_END_NAMESPACE 39 | 40 | class GridLayoutWidget : public QWidget 41 | { 42 | Q_OBJECT 43 | public: 44 | explicit GridLayoutWidget(QWidget *parent = nullptr); 45 | ~GridLayoutWidget(); 46 | 47 | private: 48 | Ui::GridLayoutWidget* m_ui; 49 | }; 50 | 51 | #endif // GRIDLAYOUTWIDGET_H 52 | -------------------------------------------------------------------------------- /tests/auto/layouts/hboxlayout.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | HBoxLayoutWidget 4 | 5 | 6 | 7 | 8 | 9 | 1 10 | 11 | 12 | 13 | 14 | 15 | 16 | 2 17 | 18 | 19 | 20 | 21 | 22 | 23 | 3 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /tests/auto/layouts/hboxlayoutwidget.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | hboxlayoutwidget.cpp 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #include "hboxlayoutwidget.h" 29 | 30 | #include "ui_hboxlayout.h" 31 | 32 | HBoxLayoutWidget::HBoxLayoutWidget(QWidget *parent) 33 | : QWidget(parent) 34 | , m_ui(new Ui::HBoxLayoutWidget) 35 | { 36 | m_ui->setupUi(this); 37 | } 38 | 39 | HBoxLayoutWidget::~HBoxLayoutWidget() 40 | { 41 | delete m_ui; 42 | } 43 | -------------------------------------------------------------------------------- /tests/auto/layouts/hboxlayoutwidget.h: -------------------------------------------------------------------------------- 1 | /* 2 | hboxlayoutwidget.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef HBOXLAYOUTWIDGET_H 29 | #define HBOXLAYOUTWIDGET_H 30 | 31 | #include 32 | 33 | QT_BEGIN_NAMESPACE 34 | namespace Ui 35 | { 36 | class HBoxLayoutWidget; 37 | } 38 | QT_END_NAMESPACE 39 | 40 | class HBoxLayoutWidget : public QWidget 41 | { 42 | Q_OBJECT 43 | public: 44 | explicit HBoxLayoutWidget(QWidget *parent = nullptr); 45 | ~HBoxLayoutWidget(); 46 | 47 | private: 48 | Ui::HBoxLayoutWidget* m_ui; 49 | }; 50 | 51 | #endif // HBOXLAYOUTWIDGET_H 52 | -------------------------------------------------------------------------------- /tests/auto/layouts/layouts.pro: -------------------------------------------------------------------------------- 1 | include("$$PWD/../auto.pri") 2 | 3 | SOURCES += tst_layouts.cpp \ 4 | hboxlayoutwidget.cpp \ 5 | vboxlayoutwidget.cpp \ 6 | formlayoutwidget.cpp \ 7 | gridlayoutwidget.cpp \ 8 | stackedlayoutwidget.cpp \ 9 | stackedwidget.cpp 10 | 11 | RESOURCES += \ 12 | qml.qrc 13 | 14 | FORMS += \ 15 | hboxlayout.ui \ 16 | vboxlayout.ui \ 17 | formlayout.ui \ 18 | gridlayout.ui \ 19 | stackedwidget.ui 20 | 21 | HEADERS += \ 22 | hboxlayoutwidget.h \ 23 | vboxlayoutwidget.h \ 24 | formlayoutwidget.h \ 25 | gridlayoutwidget.h \ 26 | stackedlayoutwidget.h \ 27 | stackedwidget.h 28 | -------------------------------------------------------------------------------- /tests/auto/layouts/qml.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | qml/HBoxLayoutTest.qml 4 | qml/VBoxLayoutTest.qml 5 | qml/FormLayoutTest.qml 6 | qml/GridLayoutTest.qml 7 | qml/StackedLayoutTest.qml 8 | qml/StackedWidgetTest.qml 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/auto/layouts/qml/FormLayoutTest.qml: -------------------------------------------------------------------------------- 1 | /* 2 | FormLayoutTest.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Widget { 31 | FormLayout { 32 | LineEdit { 33 | FormLayout.label: qsTr("TextLabel") 34 | } 35 | SpinBox { 36 | FormLayout.label: qsTr("TextLabel") 37 | } 38 | CheckBox { 39 | FormLayout.label: qsTr("TextLabel") 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /tests/auto/layouts/qml/HBoxLayoutTest.qml: -------------------------------------------------------------------------------- 1 | /* 2 | HBoxLayoutTest.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Widget { 31 | HBoxLayout { 32 | PushButton { 33 | text: "1" 34 | } 35 | PushButton { 36 | text: "2" 37 | } 38 | PushButton { 39 | text: "3" 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /tests/auto/layouts/qml/StackedLayoutTest.qml: -------------------------------------------------------------------------------- 1 | /* 2 | StackedLayoutTest.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Widget { 31 | StackedLayout { 32 | Label { 33 | text: "Page 1" 34 | } 35 | Label { 36 | text: "Page 2" 37 | } 38 | Label { 39 | text: "Page 3" 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /tests/auto/layouts/qml/StackedWidgetTest.qml: -------------------------------------------------------------------------------- 1 | /* 2 | StackedWidgetTest.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | StackedWidget { 31 | Label { 32 | text: "Page 1" 33 | } 34 | Label { 35 | text: "Page 2" 36 | } 37 | Label { 38 | text: "Page 3" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /tests/auto/layouts/qml/VBoxLayoutTest.qml: -------------------------------------------------------------------------------- 1 | /* 2 | VBoxLayoutTest.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtWidgets 1.0 29 | 30 | Widget { 31 | VBoxLayout { 32 | PushButton { 33 | text: "1" 34 | } 35 | PushButton { 36 | text: "2" 37 | } 38 | PushButton { 39 | text: "3" 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /tests/auto/layouts/stackedlayoutwidget.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | stackedlayoutwidget.cpp 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #include "stackedlayoutwidget.h" 29 | 30 | #include 31 | #include 32 | 33 | StackedLayoutWidget::StackedLayoutWidget(QWidget *parent) 34 | : QWidget(parent) 35 | { 36 | QStackedLayout *stackedLayout = new QStackedLayout; 37 | stackedLayout->addWidget(new QLabel(QStringLiteral("Page 1"))); 38 | stackedLayout->addWidget(new QLabel(QStringLiteral("Page 2"))); 39 | stackedLayout->addWidget(new QLabel(QStringLiteral("Page 3"))); 40 | 41 | setLayout(stackedLayout); 42 | } 43 | -------------------------------------------------------------------------------- /tests/auto/layouts/stackedlayoutwidget.h: -------------------------------------------------------------------------------- 1 | /* 2 | stackedlayoutwidget.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef STACKEDLAYOUTWIDGET_H 29 | #define STACKEDLAYOUTWIDGET_H 30 | 31 | #include 32 | 33 | class StackedLayoutWidget : public QWidget 34 | { 35 | Q_OBJECT 36 | public: 37 | explicit StackedLayoutWidget(QWidget *parent = nullptr); 38 | }; 39 | 40 | #endif // STACKEDLAYOUTWIDGET_H 41 | -------------------------------------------------------------------------------- /tests/auto/layouts/stackedwidget.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | stackedwidget.cpp 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #include "stackedwidget.h" 29 | 30 | #include "ui_stackedwidget.h" 31 | 32 | StackedWidget::StackedWidget(QWidget *parent) 33 | : QStackedWidget(parent) 34 | , m_ui(new Ui::StackedWidget) 35 | { 36 | m_ui->setupUi(this); 37 | } 38 | 39 | StackedWidget::~StackedWidget() 40 | { 41 | delete m_ui; 42 | } 43 | -------------------------------------------------------------------------------- /tests/auto/layouts/stackedwidget.h: -------------------------------------------------------------------------------- 1 | /* 2 | stackedwidget.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef STACKEDWIDGET_H 29 | #define STACKEDWIDGET_H 30 | 31 | #include 32 | 33 | QT_BEGIN_NAMESPACE 34 | namespace Ui 35 | { 36 | class StackedWidget; 37 | } 38 | QT_END_NAMESPACE 39 | 40 | class StackedWidget : public QStackedWidget 41 | { 42 | Q_OBJECT 43 | public: 44 | explicit StackedWidget(QWidget *parent = nullptr); 45 | ~StackedWidget(); 46 | 47 | private: 48 | Ui::StackedWidget* m_ui; 49 | }; 50 | 51 | #endif // STACKEDWIDGET_H 52 | -------------------------------------------------------------------------------- /tests/auto/layouts/stackedwidget.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | StackedWidget 4 | 5 | 6 | 7 | Page 1 8 | 9 | 10 | 11 | 12 | Page 2 13 | 14 | 15 | 16 | 17 | Page 3 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/auto/layouts/vboxlayout.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | VBoxLayoutWidget 4 | 5 | 6 | 7 | 8 | 9 | 1 10 | 11 | 12 | 13 | 14 | 15 | 16 | 2 17 | 18 | 19 | 20 | 21 | 22 | 23 | 3 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /tests/auto/layouts/vboxlayoutwidget.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | vboxlayoutwidget.cpp 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #include "vboxlayoutwidget.h" 29 | 30 | #include "ui_vboxlayout.h" 31 | 32 | VBoxLayoutWidget::VBoxLayoutWidget(QWidget *parent) 33 | : QWidget(parent) 34 | , m_ui(new Ui::VBoxLayoutWidget) 35 | { 36 | m_ui->setupUi(this); 37 | } 38 | 39 | VBoxLayoutWidget::~VBoxLayoutWidget() 40 | { 41 | delete m_ui; 42 | } 43 | -------------------------------------------------------------------------------- /tests/auto/layouts/vboxlayoutwidget.h: -------------------------------------------------------------------------------- 1 | /* 2 | vboxlayoutwidget.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef VBOXLAYOUTWIDGET_H 29 | #define VBOXLAYOUTWIDGET_H 30 | 31 | #include 32 | 33 | QT_BEGIN_NAMESPACE 34 | namespace Ui 35 | { 36 | class VBoxLayoutWidget; 37 | } 38 | QT_END_NAMESPACE 39 | 40 | class VBoxLayoutWidget : public QWidget 41 | { 42 | Q_OBJECT 43 | public: 44 | explicit VBoxLayoutWidget(QWidget *parent = nullptr); 45 | ~VBoxLayoutWidget(); 46 | 47 | private: 48 | Ui::VBoxLayoutWidget* m_ui; 49 | }; 50 | 51 | #endif // VBOXLAYOUTWIDGET_H 52 | -------------------------------------------------------------------------------- /tests/auto/qmlplugins/qmlplugins.pro: -------------------------------------------------------------------------------- 1 | QT += testlib qml widgets 2 | 3 | CONFIG += qt console warn_on depend_includepath testcase 4 | CONFIG -= app_bundle 5 | 6 | TEMPLATE = app 7 | 8 | SOURCES += tst_qmlplugins.cpp 9 | -------------------------------------------------------------------------------- /tests/auto/quickwidget/quickwidget.pro: -------------------------------------------------------------------------------- 1 | include("$$PWD/../auto.pri") 2 | 3 | QT += gui-private quickwidgets 4 | 5 | SOURCES += \ 6 | tst_quickwidget.cpp 7 | 8 | DISTFILES += \ 9 | rectangle.qml \ 10 | rectangle-context.qml 11 | 12 | RESOURCES += \ 13 | quickwidgets.qrc 14 | -------------------------------------------------------------------------------- /tests/auto/quickwidget/quickwidgets.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | rectangle.qml 4 | rectangle-context.qml 5 | 6 | 7 | -------------------------------------------------------------------------------- /tests/auto/quickwidget/rectangle-context.qml: -------------------------------------------------------------------------------- 1 | /* 2 | rectangle-context.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtQuick 2.0 29 | 30 | Rectangle { 31 | anchors.fill: parent 32 | color: _colour 33 | 34 | Component.onCompleted: { 35 | console.log("_colour is", _colour) 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tests/auto/quickwidget/rectangle.qml: -------------------------------------------------------------------------------- 1 | /* 2 | rectangle.qml 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2017-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Nathan Collins 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | import QtQuick 2.0 29 | 30 | Rectangle { 31 | anchors.fill: parent 32 | color: "lightblue" 33 | } 34 | -------------------------------------------------------------------------------- /tests/tests.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | 3 | SUBDIRS = auto 4 | -------------------------------------------------------------------------------- /ui2dw/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2025 Klarälvdalens Datakonsult AB, a KDAB Group 2 | # company 3 | # 4 | # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only 5 | 6 | set(CMAKE_AUTOMOC ON) 7 | set(CMAKE_AUTORCC ON) 8 | set(CMAKE_AUTOUIC ON) 9 | 10 | set(SOURCES 11 | main.cpp 12 | uinode.cpp 13 | uinodevisitor.cpp 14 | uiwidgetnode.cpp 15 | parser.cpp 16 | uitopnode.cpp 17 | qmlwriter.cpp 18 | idvisitor.cpp 19 | uilayoutnode.cpp 20 | uiobjectnode.cpp 21 | uipropertynode.cpp 22 | elementnamevisitor.cpp 23 | uiactionnode.cpp 24 | uiaddactionnode.cpp 25 | uilayoutitemnode.cpp 26 | itemvisitor.cpp 27 | uispacernode.cpp 28 | fontproperyvisitor.cpp 29 | uiconnectionnode.cpp 30 | connectionnodevisitor.cpp 31 | layoutvisitor.cpp 32 | buddyvisitor.cpp 33 | uitabstopsnode.cpp 34 | tabstopsnodevisitor.cpp) 35 | 36 | add_executable(ui2dw ${SOURCES}) 37 | target_link_libraries(ui2dw PRIVATE Qt${QTMAJOR}::Core) 38 | -------------------------------------------------------------------------------- /ui2dw/buddyvisitor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | buddyvisitor.cpp 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2014-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #include "buddyvisitor.h" 29 | 30 | #include "uipropertynode.h" 31 | 32 | BuddyVisitor::BuddyVisitor(const SharedVisitationContext &context) 33 | : UiNodeVisitor(context) 34 | { 35 | } 36 | 37 | void BuddyVisitor::visit(UiPropertyNode *propertyNode) 38 | { 39 | if (propertyNode->name() == QLatin1String("buddy")) { 40 | IdValue idValue; 41 | idValue.id = m_sharedContext->idForObjectName(propertyNode->value().toString()); 42 | 43 | propertyNode->setValue(QVariant::fromValue(idValue)); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /ui2dw/buddyvisitor.h: -------------------------------------------------------------------------------- 1 | /* 2 | buddyvisitor.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2014-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef BUDDYVISITOR_H 29 | #define BUDDYVISITOR_H 30 | 31 | #include "uinodevisitor.h" 32 | 33 | class BuddyVisitor : public UiNodeVisitor 34 | { 35 | public: 36 | explicit BuddyVisitor(const SharedVisitationContext &context); 37 | 38 | void visit(UiPropertyNode *propertyNode); 39 | }; 40 | 41 | #endif // BUDDYVISITOR_H 42 | -------------------------------------------------------------------------------- /ui2dw/elementnamevisitor.h: -------------------------------------------------------------------------------- 1 | /* 2 | elementnamevisitor.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef ELEMENTNAMEVISITOR_H 29 | #define ELEMENTNAMEVISITOR_H 30 | 31 | #include "uinodevisitor.h" 32 | 33 | class ElementNameVisitor : public UiNodeVisitor 34 | { 35 | public: 36 | explicit ElementNameVisitor(const SharedVisitationContext &sharedContext); 37 | 38 | void visit(UiObjectNode *objectNode); 39 | void visit(UiPropertyNode *propertyNode); 40 | }; 41 | 42 | #endif // ELEMENTNAMEVISITOR_H 43 | -------------------------------------------------------------------------------- /ui2dw/fontproperyvisitor.h: -------------------------------------------------------------------------------- 1 | /* 2 | fontproperyvisitor.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2014-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef FONTPROPERYVISITOR_H 29 | #define FONTPROPERYVISITOR_H 30 | 31 | #include "uinodevisitor.h" 32 | 33 | #include 34 | 35 | class FontProperyVisitor : public UiNodeVisitor 36 | { 37 | public: 38 | explicit FontProperyVisitor(const SharedVisitationContext &sharedContext); 39 | 40 | void visit(UiPropertyNode *propertyNode); 41 | 42 | private: 43 | const QSet m_unhandledSubProperties; 44 | }; 45 | 46 | #endif // FONTPROPERYVISITOR_H 47 | -------------------------------------------------------------------------------- /ui2dw/idvisitor.h: -------------------------------------------------------------------------------- 1 | /* 2 | idvisitor.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef IDVISITOR_H 29 | #define IDVISITOR_H 30 | 31 | #include "uinodevisitor.h" 32 | 33 | #include 34 | 35 | class IdVisitor : public UiNodeVisitor 36 | { 37 | public: 38 | explicit IdVisitor(const SharedVisitationContext &sharedContext); 39 | 40 | void visit(UiObjectNode *objectNode); 41 | void visit(UiSpacerNode *spacerNode); 42 | 43 | protected: 44 | QHash m_idsByObjectName; 45 | 46 | protected: 47 | QString objectNameToUniqueId(QString &objectName); 48 | QString objectNameStringToIdString(const QString &objectName) const; 49 | }; 50 | 51 | #endif // IDVISITOR_H 52 | -------------------------------------------------------------------------------- /ui2dw/itemvisitor.h: -------------------------------------------------------------------------------- 1 | /* 2 | itemvisitor.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef ITEMVISITOR_H 29 | #define ITEMVISITOR_H 30 | 31 | #include "uinodevisitor.h" 32 | 33 | #include 34 | 35 | class ItemVisitor : public UiNodeVisitor 36 | { 37 | public: 38 | explicit ItemVisitor(const SharedVisitationContext &sharedContext); 39 | 40 | void visit(UiLayoutItemNode *itemNode); 41 | 42 | private: 43 | void visitGridLayoutItem(UiLayoutItemNode *itemNode); 44 | void visitFormLayoutItem(UiLayoutItemNode *itemNode); 45 | 46 | private: 47 | QHash m_labels; 48 | }; 49 | 50 | #endif // ITEMVISITOR_H 51 | -------------------------------------------------------------------------------- /ui2dw/layoutvisitor.h: -------------------------------------------------------------------------------- 1 | /* 2 | layoutvisitor.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2014-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef LAYOUTVISITOR_H 29 | #define LAYOUTVISITOR_H 30 | 31 | #include "uinodevisitor.h" 32 | 33 | class LayoutVisitor : public UiNodeVisitor 34 | { 35 | public: 36 | explicit LayoutVisitor(const SharedVisitationContext &sharedContext); 37 | 38 | void visit(UiLayoutNode *layoutNode); 39 | }; 40 | 41 | #endif // LAYOUTVISITOR_H 42 | -------------------------------------------------------------------------------- /ui2dw/tabstopsnodevisitor.h: -------------------------------------------------------------------------------- 1 | /* 2 | tabstopsnodevisitor.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2014-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef TABSTOPSNODEVISITOR_H 29 | #define TABSTOPSNODEVISITOR_H 30 | 31 | #include "uinodevisitor.h" 32 | 33 | class TabStopsNodeVisitor : public UiNodeVisitor 34 | { 35 | public: 36 | explicit TabStopsNodeVisitor(const SharedVisitationContext &sharedContext); 37 | 38 | void visit(UiTabStopsNode *tabStopsNode); 39 | void visit(UiTopNode *topNode); 40 | void visit(UiWidgetNode *widgetNode); 41 | 42 | private: 43 | UiWidgetNode *m_widgetNode; 44 | QSet m_tabStopsNodes; 45 | }; 46 | 47 | #endif // TABSTOPSNODEVISITOR_H 48 | -------------------------------------------------------------------------------- /ui2dw/ui2dw.pro: -------------------------------------------------------------------------------- 1 | QT += core 2 | 3 | QT -= gui 4 | 5 | TARGET = ui2dw 6 | CONFIG += console 7 | CONFIG -= app_bundle 8 | 9 | TEMPLATE = app 10 | 11 | 12 | SOURCES += main.cpp \ 13 | uinode.cpp \ 14 | uinodevisitor.cpp \ 15 | uiwidgetnode.cpp \ 16 | parser.cpp \ 17 | uitopnode.cpp \ 18 | qmlwriter.cpp \ 19 | idvisitor.cpp \ 20 | uilayoutnode.cpp \ 21 | uiobjectnode.cpp \ 22 | uipropertynode.cpp \ 23 | elementnamevisitor.cpp \ 24 | uiactionnode.cpp \ 25 | uiaddactionnode.cpp \ 26 | uilayoutitemnode.cpp \ 27 | itemvisitor.cpp \ 28 | uispacernode.cpp \ 29 | fontproperyvisitor.cpp \ 30 | uiconnectionnode.cpp \ 31 | connectionnodevisitor.cpp \ 32 | layoutvisitor.cpp \ 33 | buddyvisitor.cpp \ 34 | uitabstopsnode.cpp \ 35 | tabstopsnodevisitor.cpp 36 | 37 | HEADERS += \ 38 | uinode.h \ 39 | uinodevisitor.h \ 40 | uiwidgetnode.h \ 41 | parser.h \ 42 | uitopnode.h \ 43 | qmlwriter.h \ 44 | idvisitor.h \ 45 | uilayoutnode.h \ 46 | uiobjectnode.h \ 47 | uipropertynode.h \ 48 | elementnamevisitor.h \ 49 | uiactionnode.h \ 50 | uiaddactionnode.h \ 51 | uilayoutitemnode.h \ 52 | itemvisitor.h \ 53 | uispacernode.h \ 54 | fontproperyvisitor.h \ 55 | uiconnectionnode.h \ 56 | connectionnodevisitor.h \ 57 | layoutvisitor.h \ 58 | buddyvisitor.h \ 59 | uitabstopsnode.h \ 60 | tabstopsnodevisitor.h 61 | -------------------------------------------------------------------------------- /ui2dw/uiactionnode.h: -------------------------------------------------------------------------------- 1 | /* 2 | uiactionnode.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef UIACTIONNODE_H 29 | #define UIACTIONNODE_H 30 | 31 | #include "uiobjectnode.h" 32 | 33 | class Parser; 34 | 35 | class UiActionNode : public UiObjectNode 36 | { 37 | public: 38 | UiActionNode(); 39 | 40 | static UiNode *parse(Parser *parser); 41 | 42 | void accept(UiNodeVisitor *visitor); 43 | }; 44 | 45 | #endif // UIACTIONNODE_H 46 | -------------------------------------------------------------------------------- /ui2dw/uiaddactionnode.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | uiaddactionnode.cpp 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #include "uiaddactionnode.h" 29 | 30 | #include "uinodevisitor.h" 31 | 32 | UiAddActionNode::UiAddActionNode() 33 | { 34 | } 35 | 36 | void UiAddActionNode::accept(UiNodeVisitor *visitor) 37 | { 38 | visitor->visit(this); 39 | } 40 | -------------------------------------------------------------------------------- /ui2dw/uiaddactionnode.h: -------------------------------------------------------------------------------- 1 | /* 2 | uiaddactionnode.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef UIADDACTIONNODE_H 29 | #define UIADDACTIONNODE_H 30 | 31 | #include "uinode.h" 32 | 33 | class UiAddActionNode : public UiNode 34 | { 35 | public: 36 | UiAddActionNode(); 37 | 38 | void accept(UiNodeVisitor *visitor); 39 | }; 40 | 41 | #endif // UIADDACTIONNODE_H 42 | -------------------------------------------------------------------------------- /ui2dw/uilayoutnode.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | uilayoutnode.cpp 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #include "uilayoutnode.h" 29 | 30 | #include "uinodevisitor.h" 31 | 32 | UiLayoutNode::UiLayoutNode() 33 | : UiObjectNode(QLatin1String("layout")) 34 | { 35 | } 36 | 37 | UiNode *UiLayoutNode::parse(Parser *parser) 38 | { 39 | return UiObjectNode::parse(new UiLayoutNode, parser); 40 | } 41 | 42 | void UiLayoutNode::accept(UiNodeVisitor *visitor) 43 | { 44 | visitor->visit(this); 45 | } 46 | -------------------------------------------------------------------------------- /ui2dw/uilayoutnode.h: -------------------------------------------------------------------------------- 1 | /* 2 | uilayoutnode.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef UILAYOUTNODE_H 29 | #define UILAYOUTNODE_H 30 | 31 | #include "uiobjectnode.h" 32 | 33 | class UiLayoutNode : public UiObjectNode 34 | { 35 | public: 36 | UiLayoutNode(); 37 | 38 | static UiNode *parse(Parser *parser); 39 | 40 | void accept(UiNodeVisitor *visitor); 41 | }; 42 | 43 | #endif // UILAYOUTNODE_H 44 | -------------------------------------------------------------------------------- /ui2dw/uispacernode.h: -------------------------------------------------------------------------------- 1 | /* 2 | uispacernode.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2014-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef UISPACERNODE_H 29 | #define UISPACERNODE_H 30 | 31 | #include "uinode.h" 32 | 33 | class UiNodeVisitor; 34 | class Parser; 35 | 36 | class UiSpacerNode : public UiNode 37 | { 38 | public: 39 | UiSpacerNode(); 40 | 41 | static UiNode *parse(Parser *parser); 42 | 43 | void accept(UiNodeVisitor *visitor); 44 | 45 | QString id() const; 46 | void setId(const QString &id); 47 | 48 | protected: 49 | QString m_id; 50 | }; 51 | 52 | #endif // UISPACERNODE_H 53 | -------------------------------------------------------------------------------- /ui2dw/uitabstopsnode.h: -------------------------------------------------------------------------------- 1 | /* 2 | uitabstopsnode.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2014-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef UITABSTOPSNODE_H 29 | #define UITABSTOPSNODE_H 30 | 31 | #include "uinode.h" 32 | 33 | #include 34 | 35 | class Parser; 36 | 37 | class UiTabStopsNode : public UiNode 38 | { 39 | public: 40 | UiTabStopsNode(); 41 | 42 | static UiNode *parse(Parser *parser); 43 | 44 | void accept(UiNodeVisitor *visitor); 45 | 46 | void setTabStops(const QStringList &tabStops); 47 | QStringList tabStops() const; 48 | 49 | private: 50 | QStringList m_tabStops; 51 | }; 52 | 53 | #endif // UITABSTOPSNODE_H 54 | -------------------------------------------------------------------------------- /ui2dw/uitopnode.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | uitopnode.cpp 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #include "uitopnode.h" 29 | 30 | #include "uinodevisitor.h" 31 | 32 | UiTopNode::UiTopNode() 33 | { 34 | } 35 | 36 | void UiTopNode::accept(UiNodeVisitor *visitor) 37 | { 38 | visitor->visit(this); 39 | } 40 | 41 | QStringList UiTopNode::className() const 42 | { 43 | return m_className; 44 | } 45 | 46 | void UiTopNode::setClassName(const QStringList &className) 47 | { 48 | m_className = className; 49 | } 50 | -------------------------------------------------------------------------------- /ui2dw/uitopnode.h: -------------------------------------------------------------------------------- 1 | /* 2 | uitopnode.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef UITOPNODE_H 29 | #define UITOPNODE_H 30 | 31 | #include "uinode.h" 32 | 33 | #include 34 | 35 | class UiTopNode : public UiNode 36 | { 37 | public: 38 | UiTopNode(); 39 | 40 | void accept(UiNodeVisitor *visitor); 41 | 42 | QStringList className() const; 43 | void setClassName(const QStringList &className); 44 | 45 | protected: 46 | QStringList m_className; 47 | }; 48 | 49 | #endif // UITOPNODE_H 50 | -------------------------------------------------------------------------------- /ui2dw/uiwidgetnode.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | uiwidgetnode.cpp 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #include "uiwidgetnode.h" 29 | 30 | #include "uinodevisitor.h" 31 | 32 | UiWidgetNode::UiWidgetNode() 33 | : UiObjectNode(QLatin1String("widget")) 34 | { 35 | } 36 | 37 | UiNode *UiWidgetNode::parse(Parser *parser) 38 | { 39 | return UiObjectNode::parse(new UiWidgetNode, parser); 40 | } 41 | 42 | void UiWidgetNode::accept(UiNodeVisitor *visitor) 43 | { 44 | visitor->visit(this); 45 | } 46 | -------------------------------------------------------------------------------- /ui2dw/uiwidgetnode.h: -------------------------------------------------------------------------------- 1 | /* 2 | uiwidgetnode.h 3 | 4 | This file is part of DeclarativeWidgets, library and tools for creating QtWidget UIs with QML. 5 | 6 | Copyright (C) 2013-2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 7 | Author: Kevin Krammer 8 | 9 | Licensees holding valid commercial KDAB DeclarativeWidgets licenses may use this file in 10 | accordance with DeclarativeWidgets Commercial License Agreement provided with the Software. 11 | 12 | Contact info@kdab.com if any conditions of this licensing are not clear to you. 13 | 14 | This program is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation, either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | */ 27 | 28 | #ifndef UIWIDGETNODE_H 29 | #define UIWIDGETNODE_H 30 | 31 | #include "uiobjectnode.h" 32 | 33 | class UiWidgetNode : public UiObjectNode 34 | { 35 | public: 36 | UiWidgetNode(); 37 | 38 | static UiNode *parse(Parser *parser); 39 | 40 | void accept(UiNodeVisitor *visitor); 41 | }; 42 | 43 | #endif // UIWIDGETNODE_H 44 | --------------------------------------------------------------------------------