aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual
Commit message (Collapse)AuthorAgeFilesLines
* LayoutBuilder: Update demohjk6 days3-536/+615
| | | | | | | | Backport the learnings and simplification from the real use to the demo case. Change-Id: I3f501b03c760484961bfd586735c0db53ba080db Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Use LayoutBuilder V2hjk7 days2-16/+18
| | | | | | | | | | | | This puts the implementation introduced in acf1ecb47fdf into use, after significant simplifications in the class hierarchy. CRTP is not used anymore, and the new tag based dispatch is also used for Layout::addItem, effectively reducing the number of different code paths. The Lua based settings access is disabled for now. Change-Id: Idb6d1a25675378757c5267bdb630bcd4c1f52d34 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* CommandLine: Use more 1-arg c'torJarek Kobus2024-05-161-13/+11
| | | | | Change-Id: If52c4094f94859d51e31862d913b1756e333e512 Reviewed-by: hjk <hjk@qt.io>
* LayoutBuilder: Complete experimental implementationhjk2024-05-164-0/+1542
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for inheritance to the existing experimental implementation in tests/manual/layoutbuilder/experimental and gets rid of the tight coupling and qobject_casts in the setter implementations. Plan is to use this (minus "bindings" via *::Id / id()) for utils/layoutbuilder.{h,cpp} later. The "binding" support via id() is still experimental, and in its current version not really useful. A possible idea would be to re-use the Tasking::Storage idea, but it's not quite clear how to expose that "long distance" (i.e. across multiple, unrelated top-level builders). However, this is not used in in current uses of the "old" layoutbuilder, so this is not blocking anything. Some notes: The *Interface hierarchy is not strictly needed, it could directly act on things in the QObject hierarchy but would then need #includes of all "buildable" classes, which can be avoided in the current implementation. Besides, the indirection allows us to tweak and/or add functionailty to the Qt classes in the indirecting code, that does not necessarily have to match 1:1 to the underlyings Qt classes. The std::function based callbacks are quite fat and not functionally needed and could be dropped by "inlining" the relevant bits from typical std::function implementations. However, these invariably seem to end up calling functions through pointers to (ABI-compatible, but) different types, which is for /user/ code formally undefined behavior according to C++11 ยง5.2.10/6. To avoid a discussion whether doing the same ourselves is tolerable or not, this uses std::function and pays the price of the overhead. Change-Id: I6d40c1bd48cf065fcf211eaff8d9a2298bca20eb Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* ExtensionSystem: FilePath'ifyMarcus Tillmanns2024-05-081-1/+1
| | | | | | | | Change IPlugin::fileName() and IPlugin::location to use FilePath instead of QString. Change-Id: If473ab1e258951735f93221cbd62c505f0727eb2 Reviewed-by: hjk <hjk@qt.io>
* TaskTree: Introduce parallelIdealThreadCountLimitJarek Kobus2024-04-151-1/+1
| | | | | | | | Reuse the new element. Fixes: QTCREATORBUG-30647 Change-Id: I79836a9243abcb1661c79842dcf6c33492342552 Reviewed-by: hjk <hjk@qt.io>
* Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-03-202-0/+4
|\ | | | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake doc/qtcreator/src/overview/creator-only/creator-keyboard-shortcuts.qdoc qbs/modules/qtc/qtc.qbs src/plugins/remotelinux/linuxdevicetester.cpp Change-Id: I8434e41dcfbb50f6ed032a3e0af1591eb19b79eb
| * Tests: Add *.figmatokens to manual/widgets testsAlessandro Portale2024-03-191-0/+2
| | | | | | | | | | Change-Id: Ic4be9c65508052f95c07a5466ac397c060524a41 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
| * Tests: Fix environment for test runChristian Stenger2024-03-191-0/+2
| | | | | | | | | | Change-Id: I32e491d06d9041b8ba6ad24badd6aa383ba1d163 Reviewed-by: hjk <hjk@qt.io>
* | Spinner: Allow setting the spinner colorAlessandro Portale2024-03-151-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deeply under the hood, the color for ther Spinner was determined by the QApplication palette, color role "Text". In order to run the spinner on a dark toolbar (in a non-dark theme), though, the color needs to be bright. It is the case for the ScreenRecorder. This change adds a color setter to the Spinner classes, adds colored Spinners to tst_spinner and makes use of the feature in the ScreenRecorder. The default color of the Spinner remains QApplication palette, color role "Text". Change-Id: Ia75758707f225b1f994e73c5a314478101c80f5e Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-03-121-65/+73
|\| | | | | | | | | | | | | | | Conflicts: src/plugins/debugger/gdb/gdbsettings.cpp src/plugins/perfprofiler/perfprofilerruncontrol.cpp Change-Id: I0d5b914f9d9b5499920a5db484ef77af6ae748d5
| * ClangFormat: Do not align parameters/arguments with the function nameChristian Kandeler2024-03-061-65/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | The previous setting - wastes space, leading to problems when both the function name and the parameter (or, more likely, the argument expression) are long-ish. - necessitates re-formatting of the entire argument/parameter list on function renaming. Change-Id: Ica82e284f9a5a8f2cf244938996039a59ce0b3aa Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Remove unneeded version checksEike Ziller2024-03-041-5/+0
| | | | | | | | | | | | | | | | | | | | | | After we raised the minimum Qt version. Change-Id: Ife81a25c3c205646eece30d6dd1a95f4b97eda01 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-02-291-2/+6
|\| | | | | | | | | | | | | Conflicts: src/plugins/android/androidsettingswidget.cpp Change-Id: Ifcb16aa16c7bc2792de25d0ee7a22cf0e39a05f8
| * Welcome: Implement new designAlessandro Portale2024-02-271-2/+6
| | | | | | | | | | | | | | | | 2024 redesign Change-Id: I6629849921272d856f201693973a8e29c6465e94 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Utils: Fix build with MSVC with C++20Eike Ziller2024-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename process.h back to qtcprocess.h MSVC's "threads" standard header includes <process.h>, and that ends up including our process.h from Utils. There already was a hacky workaround in place for a similar issue with MINGW, but that doesn't work with MSVC because that doesn't have Simply use a name that doesn't conflict. Change-Id: I1159cd2096b4f2dbc4a1728d0131dd6edd30ebd3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-02-271-10/+6
|\| | | | | | | Change-Id: If752e3383b35873b696e8beca27d8838a4096c8a
| * Update clang-format test fileChristian Kandeler2024-02-201-10/+6
| | | | | | | | | | | | | | | | | | ... such that it represents the output from a current clang-format with our current settings. Change-Id: I0bc75c80b01e991c10bc490f4dc0270b8292fae3 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Require C++20hjk2024-02-221-1/+1
| | | | | | | | | | | | Change-Id: Id6581a4c32ec6411195edb51339f017e4ddb51ff Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-02-191-0/+1
|\| | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs Change-Id: I2a3d92a14e4dd16897d19f7d8a8c7b0ec30d14a5
| * CMakePM: Update cmake conan for auto-setupCristian Adam2024-02-191-0/+1
| | | | | | | | | | | | | | | | | | | | Update to https://github.com/conan-io/cmake-conan/commit/ f6464d1e13ef7a47c569f5061f9607ea63339d39 Task-number: QTCREATORBUG-30169 Change-Id: Ibb8f3d353117c5c8ce21b8686cb6e2e5ee146698 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-02-062-75/+12
|\| | | | | | | Change-Id: I93b7f87dee16a6897193f3cd2acbe7e1f03ec6a8
| * Spinner: Add SpinnerWidgetJarek Kobus2024-02-011-74/+4
| | | | | | | | | | | | | | Move it from spinner example and make it a reusable widget. Change-Id: I3d74ec491f5d1cb7d012551f624cff2c618952ca Reviewed-by: hjk <hjk@qt.io>
| * Utils: Introduce StyleHelper::uiFontLineHeightAlessandro Portale2024-01-311-2/+3
| | | | | | | | | | | | | | | | | | | | The "Text tokens" which are defined in Figma have an additional line height value. This change adds a getter function for the line heights. Change-Id: I9513ac2f689292baf6e2c0a52fca8a1ec7f14dc1 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
| * Utils: Add two fonts to StyleHelper::UIElementAlessandro Portale2024-01-311-0/+2
| | | | | | | | | | Change-Id: I0b4ff271ef9fe91eb369c916ad886c7d39c2e060 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
| * Utils: Improve metrics handling in StyleHelper::uiFontAlessandro Portale2024-01-311-1/+5
| | | | | | | | | | | | | | | | | | | | | | Figma designs have font sizes defined in pixels. We want to define font sizes in points. This change introduces the original font pixel size values from Figma and provides the conversion to sensible point sizes. Change-Id: Ic8356942a9bc033d2b5cd62863d2bd0a4cc6973b Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* | Tests: Provide example tasks fileChristian Stenger2024-02-011-0/+65
|/ | | | | Change-Id: I529102dba9cd259de25d69a527e3ac2a0e1a9380 Reviewed-by: hjk <hjk@qt.io>
* ImageScaling: Reuse LoopListJarek Kobus2024-01-261-8/+8
| | | | | | | | Instead of LoopRepeat + container capture. Change-Id: Ic37c4ff53c4ce2a217a258aa4af1272ac3d8ab29 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* TaskTree: Rename stop() -> cancel()Jarek Kobus2024-01-251-1/+1
| | | | | | | | | | This better corresponds to done handlers called in this case with DoneWith::Cancel. By the way, get rid of unused LocatorFilter::stop(). Change-Id: Ie4246b8d888fff95940a2ed41367d2817bd6339c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* DataExchange example: Reuse TaskTreeRunnerJarek Kobus2024-01-152-21/+17
| | | | | | Change-Id: I9075dca4c121f0a6041087bc8407569308135614 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Demo example: Reuse TaskTreeRunnerJarek Kobus2024-01-151-20/+13
| | | | | Change-Id: Ia083a2317647c26886b9f483e5ae411e1e51c983 Reviewed-by: hjk <hjk@qt.io>
* ImageScaling example: Reuse TaskTreeRunnerJarek Kobus2024-01-152-5/+4
| | | | | | Change-Id: I727a961bcfca20ebc0584b1ddeeaa412aff63335 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* TaskTree: Disconnect from task's done() signal on destructionJarek Kobus2024-01-152-0/+2
| | | | | | | | | | | | | | | | | | If a task or task's adapter sends done() signal directly from the destructor (which isn't really desired), ensure we disconnect from this signal beforehand, otherwise this may start invoking normal handling of task done() and interfere with the destruction. Fix NetworkQuery d'tor. Add a test for it. Add some TODO items. Fixes: QTCREATORBUG-30204 Change-Id: I56a34d0f00c961c15bd1bcffef45520a4be5bce0 Reviewed-by: hjk <hjk@qt.io>
* TrafficLight: Undecorate strings in order to compile against Qt 6.2Jarek Kobus2024-01-131-8/+6
| | | | | Change-Id: Iac3a65cca5b07f405fb64fe4cefc7cdf3d509759 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* TaskTree: Simplify recipe in ImageScaling exampleJarek Kobus2024-01-111-11/+8
| | | | | | Change-Id: Ieda5a7b06098cc2b90c69db79b7a002345a68f44 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* TaskTree: Implement TrafficLight exampleJarek Kobus2024-01-1117-0/+331
| | | | | | | | | | | | | | Import from: https://github.com/qt/qtscxml/tree/dev/examples/scxml/trafficlight-common and implement it in terms of TaskTree. The recipe() corresponds to trafficlight.scxml file and implements the business logic. Used components: TimeoutTask and BarrierTask. Change-Id: Ifc08b947388abed8cfc85ba082aaa0b18da0a1d7 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* TaskTree: Introduce Forever groupJarek Kobus2024-01-112-2/+2
| | | | | | | Rename Forever -> LoopForever, Repeat -> LoopRepeat. Change-Id: Ic999c876762d2b092f23ae88ea6de341b68a1fc2 Reviewed-by: hjk <hjk@qt.io>
* TaskTree: Reuse Repeat element in DataExchange exampleJarek Kobus2024-01-102-18/+14
| | | | | | | | | Update the location of the target url so that it points to the TaskTree wiki image. Task-number: QTCREATORBUG-30081 Change-Id: Ic1c715c268b9e14711bc98415e747de8b75ed2dc Reviewed-by: hjk <hjk@qt.io>
* TaskTree: Reuse Repeat element in ImageScaling exampleJarek Kobus2024-01-101-35/+39
| | | | | | Task-number: QTCREATORBUG-30081 Change-Id: I281b6fe45c62045686ee215a5e03a5d8917a0282 Reviewed-by: hjk <hjk@qt.io>
* TaskTree: Remove explicit List elementJarek Kobus2023-12-221-21/+21
| | | | | | | | | | | Replace it with additional GroupItem's c'tors. This addresses the 27th point in the report below. Task-number: QTCREATORBUG-28741 Change-Id: I7f0620993e7c9bf61868e7bc7b112eea4dae6471 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* Merge remote-tracking branch 'origin/12.0'Eike Ziller2023-12-201-1/+1
|\ | | | | | | Change-Id: Iee11f97dbd0114957e856d02f0ad295813a05431
| * Debugger: Fix a (harmless) use after free in manual testhjk2023-12-201-1/+1
| | | | | | | | | | Change-Id: Ie7fdd9a5dbf3767faafead4ce85fb1c470e144cf Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Plugins: Add skeleton for new ExtensionManager pluginhjk2023-12-111-0/+3
| | | | | | | | | | | | | | | | This initial commit is merely a mockup of a ExtensionManager concept. Change-Id: I19b2285667678a86097c043cc27a554545559eff Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: hjk <hjk@qt.io>
* | Utils: Add StyleHelper::fontToCssPropertiesAlessandro Portale2023-12-081-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | This function takes a QFont and returns the relevant CSS properties as a string. Using that CSS string in Qt's HTML supporting widgets ensures the true to detail HTML rendering of text elements with those CSS properties. This change also adds an HTML sample to tst_manual_widgets_uifonts. Change-Id: I7caf3214854f6ee62ae1211015572c640fc08dc8 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* | Utils: Add a manual test for StyleHelper::uiFontAlessandro Portale2023-12-075-0/+78
| | | | | | | | | | | | | | | | Visualizes the predefined ui fonts. Change-Id: Ic0af15ab149b213a59bf8e22cf7e17ab9042c54e Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | TaskTree demo: Tweak the done result instead of nesting a GroupJarek Kobus2023-11-203-16/+19
| | | | | | | | | | | | | | | | | | | | Tweak the return value of the TimeoutTask instead of nesting a Group with conditional workflow policy. Rename TaskWidget::isSuccess() into desiredResult(). Change-Id: I3d6f703427f13e8feb6d6db97c07b8b9f8b261a6 Reviewed-by: hjk <hjk@qt.io>
* | TaskTree: Rename TreeStorage<> -> Storage<>Jarek Kobus2023-11-204-6/+6
| | | | | | | | | | | | | | | | This addresses the 20th point in the master task below. Task-number: QTCREATORBUG-28741 Change-Id: I696beda87430fbe637abba8054012fb77516e220 Reviewed-by: hjk <hjk@qt.io>
* | TaskTree: Get rid of Storage subclass of GroupItemJarek Kobus2023-11-202-3/+3
| | | | | | | | | | | | | | | | | | | | | | Make the c'tor of the GroupItem taking the TreeStorageBase public instead. This addresses the 20th point in the master task below. Task-number: QTCREATORBUG-28741 Change-Id: I78320ec24b4e4b915ab549135fb93b45c658b9f2 Reviewed-by: hjk <hjk@qt.io>
* | TaskTree: Add a new example showing input / output data exchangeJarek Kobus2023-11-159-0/+293
| | | | | | | | | | | | | | | | | | | | | | | | | | This example shows how to separate the business logic of the recipe from the GUI and how to write a reusable recipe. It shows how to feed the recipe with the initial data and how to retrieve the final result from the recipe using onStorageSetup() and onStorageDone() handlers. Change-Id: I04c0c0c9bd6cf25ac4e91317e527ad12832e9143 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* | Fix missing overrides and redundant virtualAlessandro Portale2023-11-144-14/+14
| | | | | | | | | | Change-Id: Id2a247b6032602c2295d928067c2462d3f9b5221 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>