summaryrefslogtreecommitdiff
path: root/examples/designer
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Use the \examplecategory macro to tag examplesTopi Reinio2023-04-116-6/+6
| | | | | | | | | | | | | | | | The '\meta category' command was used for tagging examples with a specific category, used in Qt Creators Welcome mode. As we want to also generate lists of examples belonging to a category elsewhere in the documentation, replace the command with a macro that expands to the original \meta command and also adds the example to a group using the \ingroup command. This way, the category names can be used as arguments to the \generatelist or \annotatedlist commands. Pick-to: 6.5 Task-number: QTBUG-112731 Change-Id: I28dfd6d5540dfe540bab942f9e9a93e9c239e206 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Qt Designer: Remove worldtimeclock example imagesFriedemann Kleint2023-02-245-0/+0
| | | | | | | | | | | | Amends 1f859ca1ac6d337aedde2fe8eed74266416ae0d1. As a drive-by, remove the outdated arthurplugin-demo.png. Task-number: QTBUG-110447 Pick-to: 6.5 Change-Id: Iead32aaca944a886d86dd36465a2082309821be7 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Qt Designer/QtUiTools examples: Add categoriesFriedemann Kleint2023-02-206-0/+12
| | | | | | | | | Task-number: QTBUG-110447 Pick-to: 6.5 Change-Id: If00868910d64168d4f5d7280945985490984762c Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Qt Designer/QtUiTools examples: Drop 'Example' from titlesFriedemann Kleint2023-02-205-5/+5
| | | | | | | | Task-number: QTBUG-110447 Pick-to: 6.5 Change-Id: Ia9c06560f15dfee58a8a441c3791785827b70913 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Fix oversights of the Qt Designer Multi examples code changesFriedemann Kleint2023-02-204-32/+30
| | | | | | | | | | | | | | - Use new string literals - Reorder includes - Use some auto - Minor fixes Amends d1e672c47fd9cfa60f646554db6cba9de08a044f. Pick-to: 6.5 6.4 Fixes: QTBUG-110447 Change-Id: I22c2ee4f2770e2656a6ffad0823ec59f7cf3df23 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Update screenshots of the Qt Designer examplesFriedemann Kleint2023-02-1622-8/+8
| | | | | | | | | | | Remove duplicated identical pictures and replace taskmenuextension-example-faded.png by a normal screenshot since it is hard to maintain. Task-number: QTBUG-110447 Pick-to: 6.5 Change-Id: Iba7ee91dee8fb63af40c1c9b4163d573a1deae5f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Move the uitools multipleinheritance example to calculatorform_miFriedemann Kleint2023-02-1010-1/+495
| | | | | | | | | | | It illustrates how to use multipleinheritance from Ui struct and widget and is not really related to UiTools. Task-number: QTBUG-110447 Pick-to: 6.5 Change-Id: If6b61c76ea0ac07b935f1e0a8ee02a2e7179cdc3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Doc: Remove duplicate wordsAndreas Eliasson2023-02-091-1/+1
| | | | | Change-Id: If596f8677bbebba160e740dfcc24bba064dcb85f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Qt Designer: Remove worldtimeclock examplesFriedemann Kleint2023-02-0817-850/+5
| | | | | | | | | | The functionality is sufficiently demonstrated by the existing custom widget plugin examples. Task-number: QTBUG-110447 Pick-to: 6.5 Change-Id: I09198bba46ebe8da03c9e21192588e6010bec541 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Exclude Qt Designer plugin examples from cross-buildsFriedemann Kleint2023-02-061-1/+1
| | | | | | | | | | For some reason, they cannot be installed into sysroot, Complements 81fdb4dee5083a59dbdb2d01fcb6ab13285be26b. Fixes: QTBUG-110930 Pick-to: 6.5 6.4 Change-Id: Ia6f4d123f7435a1388bb3cfef38daa48120b4891 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Qt Designer examples: Add explanation of CMake project filesFriedemann Kleint2023-02-0212-165/+252
| | | | | | | Pick-to: 6.5 6.4 Task-number: QTBUG-110447 Change-Id: I36769acc50921c2e6af33288b8e291b56328ddc7 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* Qt Designer: Fix install of plugin examplesFriedemann Kleint2023-01-314-24/+36
| | | | | | | Pick-to: 6.5 6.4 Task-number: QTBUG-110447 Change-Id: I1b243a6a564ea18d684a8d5fa8d3310facf81f7d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Qt Designer/calculatorbuilder example: Remove the form class and its ↵Friedemann Kleint2023-01-306-136/+86
| | | | | | | | | | | | | | | autoconnected slots The autoconnection feature is considered error-prone and is warned about by clazy. As this removes the need for a class, remove it entirely and use a lambda for the slot. As a drive-by, fix the documentation of the project files. Pick-to: 6.5 6.4 Task-number: QTBUG-110447 Change-Id: Idf78b58445a3f89399f7ae09065f145428ef83fe Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer/calculatorform example: Remove autoconnected slotsFriedemann Kleint2023-01-234-40/+28
| | | | | | | | | | | The autoconnection feature is considered error-prone and is warned about by clazy. As a drive-by, fix the documentation of the project files. Pick-to: 6.5 6.4 Task-number: QTBUG-110447 Change-Id: I7ba1bf47487abadfeaf02fd573eb01d0519a2ffd Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Polish the Qt Designer examplesFriedemann Kleint2023-01-2314-73/+72
| | | | | | | | | | | | | - Use new string literals - Reorder includes - Use some auto - Minor fixes Pick-to: 6.5 6.4 Fixes: QTBUG-110447 Change-Id: I5af23a662dffb3a01795d1f62c573f854e2ee103 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Examples: Remove usage of qtNomakeTools from .pro filesJoerg Bornemann2023-01-181-5/+0
| | | | | | | | This is a left-over from the qmake-based build system of Qt. Pick-to: 6.5 Change-Id: If3ac9e7b4d623bd509782a7f01b451ea8502041a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-08-258-8/+8
| | | | | | Task-number: QTBUG-105718 Change-Id: I2df3a8aec11f30f301e3143e9960156b6f45e614 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Add license headers to cmake filesLucie Gérard2022-08-028-0/+24
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I41a2c9aa6a933a4e3dda5d5b4c70c461912907b2 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-1942-1897/+84
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I5335388c0472b0ee554234fc7eca60769e504660 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Remove .prev_CMakeLists.txtKai Köhne2022-03-224-172/+0
| | | | | | | | Amends aeaa9e2a46a3 Pick-to: 6.3 Change-Id: I4ac5d380b72bb0952ddd8ceb55b262e7e8a4fba7 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Improve examples CMakeLists.txtKai Köhne2022-02-198-88/+32
| | | | | | | | | | | | | | | | | | | - Remove # generated from xyz.pro comment from pro2cmake - Remove "# special case" markers for pro2cmake - Remove automatic use of CMAKE_AUTORCC - Only opt into CMAKE_AUTOUIC if .ui files are involved - Remove explicit setting of CMAKE_INCLUDE_CURRENT_DIR, when unnecessary - Combine multiple find_package(Qt6 ... calls) - use REQUIRED COMPONENTS - sort components alphabetically - Fix wrong indentations - Use (only) one empty line after multi-line commands Pick-to: 6.3 Change-Id: If8bf84b498189fa681cfe5128bc8566026dabec0 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Switch examples to build as isolated sub-buildsAlexandru Croitor2021-12-151-7/+7
| | | | | | | Pick-to: 6.2 6.3 Task-number: QTBUG-90820 Change-Id: I5ad7541596d39cb089f9af03b8a194b968659910 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* CMake: Bump almost all cmake_minimum_required calls to 3.16Alexandru Croitor2021-09-227-7/+7
| | | | | | | | | | | | | Needed for subsequent change that will check and error out if the version is lower than 3.16. We do that to ensure all policies introduced by CMake up to version 3.16 have their behavior set to NEW. Pick-to: 6.2 Task-number: QTBUG-95018 Change-Id: I1191a6b4b5c13b2b6047a0e2a2ff8c3801f6762b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Fix qdoc warning and broken linkVolker Hilsheimer2021-04-133-3/+3
| | | | | | | | | The link to qobject_cast was overly specific, so no link was generated. Pick-to: 6.1 6.1.0 Change-Id: I74990ee89997a5f91d617db1eb116a2bb3bd4864 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Nico Vertriest <nico.vertriest@qt.io>
* Brush up the taskmenuextension exampleFriedemann Kleint2021-02-034-33/+31
| | | | | | | | | | | | | | | | | | When porting the code to Python, some issues showed up. - Rewrite cellRect() to take the position (reason being that porting the existing code to Python creates problems with implicit conversion to float in the division). - Use plain assignment by operator[] to replace the characters in the string - Avoid repeating return types. - Streamline code. - Initialize myState member variable. - Indicate C++ in the tool tip Task-number: PYSIDE-1455 Change-Id: I62fa61eebaa2eefe8db0842d6a3789bd7cd4257e Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer: Use raw string literals for domXML functions in pluginsFriedemann Kleint2021-01-064-56/+65
| | | | | | | This improves readibility. Change-Id: Id8cffc15ee7fae9cd4a5f51bbf778849b9774226 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* CMake: Regenerate examples to set the WIN32_EXECUTABLE propertyAlexandru Croitor2020-10-2611-0/+44
| | | | | | | | As well as the MACOSX_BUNDLE properties as necessary. Task-number: QTBUG-87664 Change-Id: I26917656f6f2b653649765ebbea4e3f348b22ae7 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* CMake: Regenerate examples to use qt_add_executableAlexandru Croitor2020-10-207-7/+7
| | | | | | Task-number: QTBUG-87661 Change-Id: I06af51591b79f9432d09b08595f8af021118a6dc Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
* Revert "Qt Designer: Migrate from QList to QVector"Friedemann Kleint2020-06-082-3/+3
| | | | | | | | | | This reverts commit ee87edebe6f934ec915b7cb4a0f5a28f73e9f221. The official class name will be QList. Task-number: QTBUG-84469 Change-Id: Ia6c1f0ed64b3ef3d5b8e0c0435ec76fbe76f867b Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* examples: fix the Designer plugins directoryChristophe Giboudeaux2020-06-044-4/+20
| | | | | | | INSTALL_EXAMPLESDIR shall be used when installing examples. Change-Id: Ieed06f4376c33a27660f5cf895862d38c52867df Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Port QtTools examples to cmakeMårten Nordheim2020-06-0313-1/+467
| | | | | Change-Id: I11146959edbec6b4577fdd339d0fcb807f53c95b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Fix ambiguous construction from char to QCharLiang Qi2020-05-181-1/+3
| | | | | Change-Id: I956c9764ac4e4da24bfd5676433a02159cbfcfdc Reviewed-by: Liang Qi <liang.qi@qt.io>
* Qt Designer: Migrate from QList to QVectorFriedemann Kleint2019-12-092-3/+3
| | | | | Change-Id: I75f6f4b7157616ba86bf520e1936536571a66ba5 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Merge remote-tracking branch 'origin/5.15' into devQt Forward Merge Bot2019-11-231-10/+8
|\ | | | | | | Change-Id: Ib7e4d5d1f997c67bb68f4c5cb20adb4a5e26f6f5
| * Doc: Resolve documentation warningsTopi Reinio2019-11-111-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | - QDoc Manual: UIComponents example project has been moved to be a part of test case - remove references to it from the manual. - Add missing image. - Document the namespace qdesigner_internal as \internal. Fixes: QTBUG-79833 Change-Id: Ic0984cef4091e794de5e502d04a897b1f532d9d8 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* | Qt Designer: Clean up the SDK headersFriedemann Kleint2019-11-113-0/+15
|/ | | | | | | | | | | | | | | - Use "= default" for constructors/destructors - Disable copy/move for non-QObject type interfaces and add constructors were needed - Remove duplicated disable copy for QObject type interfaces - Fix some formatting - Remove default implementation of QDesignerContainerExtension::canAddWidget()/canRemoveWidget() - Remove Qt 6 fixme comments Task-number: QTBUG-79896 Change-Id: If9521910c6488c081817e2ccdbf42de578cb16ad Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer Examples: Brush up to C++ 11Friedemann Kleint2017-06-2623-64/+49
| | | | | | | | Use nullptr, member initialization, QOverload, etc. Task-number: QTBUG-61184 Change-Id: I45061c506dad72d5f495f480b3e61f4d1c0599d4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Examples: Replace Q_DECL_OVERRIDE by overrideAlexander Volkov2016-12-1412-63/+63
| | | | | Change-Id: I2bed9c0dc1d72005b40ae7a7b75fa22cc67f88c6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Unify license header usagev5.7.05.7.0Antti Kokko2016-06-1035-105/+455
| | | | | | | Updated BSD license. Change-Id: Ie2521f94a2e8ed423f989e902e5eb88512814f71 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Unify license header usageAntti Kokko2016-06-107-35/+35
| | | | | | | Updated FDL license. Change-Id: I726ee109b17070d79e19c9edcdba7780aa54b1f1 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* declare that the designer example installs are okOswald Buddenhagen2016-04-284-0/+4
| | | | | | | | | installing examples into the proper designer plugin path really is NOT ok, but we have been doing it for so long now ... Change-Id: Id422b1664465bb85665391fe2de3b93f973e579a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Qt Designer Examples: Remove empty JSON files.Friedemann Kleint2016-04-258-8/+4
| | | | | | | Qt Designer plugins do not require any keywords. Change-Id: Ifd38bb8ec9b946731010bb64ee02ada474ed42b3 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Doc: corrected syntax link object_cast()Nico Vertriest2015-10-293-3/+3
| | | | | | Change-Id: If0be3c8681902c3ecd5945eb9c99b532b369232c Task-number: QTBUG-43810 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.5' into 5.6Liang Qi2015-08-281-42/+0
|\ | | | | | | Change-Id: Ic1c578187b99013c40fe686f98fc85d5917240fe
| * Merge remote-tracking branch 'origin/5.4' into 5.5Liang Qi2015-08-191-42/+0
| |\ | | | | | | | | | | | | | | | | | | Conflicts: examples/designer/doc/src/arthurplugin.qdoc Change-Id: I5c0118a90111b51db04d2ea2eb6b3c47f1fb761f
| | * Doc: Removed the qdoc page for Arthur Plugin example5.4Venugopal Shivashankar2015-05-291-42/+0
| | | | | | | | | | | | | | | | | | | | | | | | The example was removed in 2d750edc Task-number: QTBUG-41996 Change-Id: I778ef5d3af53be73bba37d99498960d2f766a53f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* | | Qt Designer: Add customizable property tooltips.Friedemann Kleint2015-07-291-0/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Introduce tag propertytooltip to property specifications in the ui XML snippet returned by QDesignerCustomWidgetInterface::domXml() - Pass the text to the property editor and set as description tooltip on the property. - As an added benefit, show the type in the normal tooltip. - Demonstrate using TicTacToe example. [ChangeLog][Qt Designer] Added customizable property tooltips. Task-number: QTBUG-45442 Change-Id: I371bbbb3a6f2bc0f433193b5eb45658211ca67de Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* | Update Qt Designer documentation.Friedemann Kleint2015-05-134-75/+33
| | | | | | | | | | | | | | | | | | | | - Document new QUiPlugin module. - Fix example documentation to reflect the changes in the qmake variables (QT/CONFIG). Task-number: QTBUG-44724 Change-Id: Idd85d601295af25d634c3186e993abc7090fe002 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* | move ui loader interfaces to own moduleOswald Buddenhagen2015-05-119-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it's backwards to declare the interface as part of the designer library itself, as that obviously pulls in half of designer itself into custom widget plugins which should be perfectly usable from the stand-alone ui loader in uitools. also, designer isn't built for embedded systems, so the bundling needlessly limited the availability of widget plugins. so move the relevant headers into a separate include-only module. the designer module retains forwarding headers, as the old includes obviously need to continue working. [ChangeLog][UiTools] Custom widget plugins should now use QT+=uiplugin instead of QT+=designer. This makes them usable on embedded systems. Task-number: QTBUG-44724 Change-Id: I5535b10d2f095b257eeda9681f60b2f8c699f7d7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* | Qt Designer Examples: Fix code around constructors.Friedemann Kleint2015-04-1020-35/+31
| | | | | | | | | | | | | | | | Make constructors explicit, use constructor initialization for member variables, remove unused variables. Change-Id: I84273400d66ef061376bd0ec4948ab1a0fd45f30 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>