aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/utils.qbs
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Introduce QtDesignSystemStyleAlessandro Portale21 hours1-0/+2
| | | | | | | | | | | | | | Simply overriding the paint method of QtcTabBar did not allow implementing the design accurately. Also, dragging of tabes tab does not work. Proper styling of a tab element in a QTabBar needs to be done via QStyle. This change introduces the QtDesignSystemStyle which initially is only responsible for QtcTabBar. Eventually, more Qtc* widgets can be handled by it. Change-Id: Ib32081edcf4ddd427bfa429a4d4038427b9ea0ca Reviewed-by: Cristian Adam <[email protected]>
* move settingsdatabase from core to utilsDavid Schulz8 days1-1/+3
| | | | | Change-Id: I21942b6a78d4ec98a65e5336ee1be767a441e012 Reviewed-by: Eike Ziller <[email protected]>
* Utils: Fix qbs buildChristian Kandeler13 days1-0/+1
| | | | | Change-Id: Ib95d542f3b2d7484d1d9f9e15d7b8e52a531e381 Reviewed-by: Christian Stenger <[email protected]>
* Utils: Remove unused class SettingsSelectorhjk2025-11-051-2/+0
| | | | | Change-Id: I6587ccf9a91bb53bd73c0fb609f51c4a4ea99fbb Reviewed-by: Christian Stenger <[email protected]>
* qbs build: Adapt to task tree updateChristian Kandeler2025-10-311-2/+2
| | | | | | | | Fixes building with the built-in QtTaskTree only. Also does not address the non-qbs-specific build failures in auto tests. Change-Id: I7f48eea8989148698358fcf31d02db7702d6c4cb Reviewed-by: Christian Kandeler <[email protected]>
* Utils: Remove unused filesystemmodel.*hjk2025-10-281-2/+0
| | | | | | | Leftover from earlier remote file system access approach. Change-Id: I9ba75b6c5c64d919a284476bd213edac5a4eb6c0 Reviewed-by: David Schulz <[email protected]>
* Merge remote-tracking branch 'origin/18.0'Eike Ziller2025-10-211-0/+2
|\ | | | | | | | | | | | | Conflicts: src/plugins/docker/dockerdeviceenvironmentaspect.cpp Change-Id: Ic381a75d91e71626af28fec2ab155117a4fdff3a
| * Utils: CompletingTextEdit: onTextChanged completions and icon supportLukasz Papierkowski2025-10-201-0/+2
| | | | | | | | | | | | | | | | | | - Extract FancyIconButton to reusable component - Autocompletion with current line positioning - Right-side embedded icon support Change-Id: Id843981882fc59ea29a0e7d385cd8fa143e2dfb2 Reviewed-by: Marcus Tillmanns <[email protected]>
* | Utils: Slim down osspecificaspects.h header contentshjk2025-10-211-0/+1
|/ | | | | Change-Id: I3902e61f2b65dc462c3ba5788d320be7d0a8c4e7 Reviewed-by: Eike Ziller <[email protected]>
* Utils: Introduce GlobalTaskTreeJarek Kobus2025-08-271-0/+2
| | | | | | | | The recipes run in a global ParallelTaskTreeRunner, guarded by shutdown guard. Change-Id: I4f9b36be245f3da57edccb99f6ca9d342d7df83b Reviewed-by: hjk <[email protected]>
* Utils: Add a 'Lazy' classhjk2025-08-061-0/+1
| | | | | | | A thin wrapper around std::variant<T, std::function<T()>> Change-Id: I5a81fd057fcebb40946d3b8c47cb147d2d1f5f9c Reviewed-by: Marcus Tillmanns <[email protected]>
* Editor: use one layout per editor instead of per documentDavid Schulz2025-07-181-2/+4
| | | | | | | | | This allows to wrap one document differently in editors with a different width. In the future this will allow us also to display additional information in just a single editor. Change-Id: Ie1a07517be8756c473207e0db58f7d9924fdb5b1 Reviewed-by: Christian Stenger <[email protected]>
* Centralize Settings storage a bithjk2025-07-041-0/+1
| | | | | | | | | | | | | | Until now, the plugin manager effectively owned the settings, with forwarded access from ICore and three places in Utils getting settings injected. This here moves the storage to Utils, removing the need for injection, as all users depend on Utils. Syntax-wise this changes access to use references instead of pointers. Change-Id: If63258fbe37da2ad3dcf78f8c2eedb61753e7cc8 Reviewed-by: Eike Ziller <[email protected]>
* qbs build: Use bundled libarchive, if necessaryChristian Kandeler2025-06-021-15/+2
| | | | | | | | Otherwise Qt Creator will not build out of the box on Windows, which is extremely annoying. Change-Id: I2fb012b794d2d1fb4858045b7927b018581a3797 Reviewed-by: Christian Stenger <[email protected]>
* Merge remote-tracking branch 'origin/17.0'Eike Ziller2025-05-261-1/+4
|\ | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs Change-Id: If5ab8dda785255d168d7765f33da2b4fe3817183
| * Fix qbs build when using MinGWChristian Stenger2025-05-261-1/+4
| | | | | | | | | | | | | | | | Partially revert cec1ed3b7117bfeecdabb69c337d98f896fc7e66. Explicitly add bcrypt to the linker. Change-Id: I6c1951ed375a6b42b13a586b98345feec0fabf21 Reviewed-by: Christian Kandeler <[email protected]>
* | Utils: Add "overloaded" helper structMarcus Tillmanns2025-05-231-0/+1
| | | | | | | | | | | | | | | | | | Allows using: std::visit(overloaded{[](TypeA){}, [](TypeB){}}, some_variant); Change-Id: I33210aea3b5635553238ec811ff8c867aacf1a56 Reviewed-by: Christian Stenger <[email protected]> Reviewed-by: hjk <[email protected]>
* | Merge remote-tracking branch 'origin/17.0'Eike Ziller2025-05-141-0/+2
|\| | | | | | | Change-Id: Ifa68d130aac336b2675cf364d0686499ef144283
| * Utils: Ensure PlainTextEdit accessibilityDavid Schulz2025-05-131-0/+2
| | | | | | | | | | | | | | Fixes: QTCREATORBUG-32897 Change-Id: I2d15470f4c81f179b9ac29977bb45bbf7f8f0219 Reviewed-by: Christian Stenger <[email protected]> Reviewed-by: Eike Ziller <[email protected]>
* | Utils: Introduce a Utils::TextCodec classhjk2025-05-141-0/+2
|/ | | | | | | | | | | | | Meant as replacement for QTextCodec, which is deprecated. The initial attempt to just use the codec name everywhere turned out to be a bit limited and lead to "non-speaking code" (!isEmpty, ...), so this here is a bit more class-y. For now, the new Utils::TextCodec still uses QTextCodec internally. Change-Id: I001e0769acd4e2a044063dde98ffaca278b1ca03 Reviewed-by: David Schulz <[email protected]>
* Utils: Move IconButton to QtcWidgetsMarcus Tillmanns2025-04-291-2/+0
| | | | | Change-Id: Ib0cc02954fe7ae1c1f7efb9efbd24ebdb81c8b81 Reviewed-by: hjk <[email protected]>
* Utils: Move components from core/welcomepagehelpers to qtcwidgetsAlessandro Portale2025-04-291-0/+2
| | | | | | | | | | | This also provides the widgets with the class name prefix "Qtc", in order to disambiguate them and the Layouting classes. The LayoutHelper "CoreButton" is renamed to Utils::QtcWidgets::Button and exposed to Lua as "QtcWidget". Change-Id: I2ed7e5f7cee91d1505c8dd13003a91f785e58c53 Reviewed-by: hjk <[email protected]>
* Utils: Introduce createProgressDialog() helperJarek Kobus2025-04-091-0/+2
| | | | | | Task-number: QTBUG-135797 Change-Id: Id3ef19b3a80c6a23720b600baa811ed48c7bbc8f Reviewed-by: Eike Ziller <[email protected]>
* Replace usage of Utils::FlowLayout with Layouting::FlowEike Ziller2025-04-041-2/+0
| | | | | | | | | | LayoutBuilder has a copy of FlowLayout that got fixes. It is not useful to have duplicate flow layouts, so just remove the one from Utils and replace the single usage with Layouting::Flow. Change-Id: I7899d964e139511677d4cabf718a4ace48da944a Reviewed-by: hjk <[email protected]> Reviewed-by: Alessandro Portale <[email protected]>
* Editor: Fix qbs buildChristian Stenger2025-04-021-1/+14
| | | | | | | Amends 132eada51be8e0d6718e220dba288049502d3358. Change-Id: Ib4caa2daac0b7908d3e1140c4c86db5960cad38f Reviewed-by: David Schulz <[email protected]>
* QbsBuild: Add support for libarchiveChristian Stenger2025-03-201-12/+31
| | | | | | | | | | | | | | | | Went for the pragmatic way of making libarchive necessary for building with qbs instead of trying to recreate the CMakeLists and allow building the internally provided sources. On Linux and macOS libarchive and its development headers are needed (system, brew,..). On Windows an installation of libarchive is needed. Set environment variable LIBARCHIVE_INSTALL_ROOT to the base install folder if it cannot be found automatically. Change-Id: Idbda1464fadb6b6c85f116f5f2a443a0f759b249 Reviewed-by: Marcus Tillmanns <[email protected]>
* ExtensionSystem: Move shutdownGuard to Utilshjk2025-01-131-0/+2
| | | | | | | | So it can be used inside Utils which does not depend on ExtensionSystem. Change-Id: Iade7f2a8eb14b2fed59e10682cff9e56c29f990e Reviewed-by: Eike Ziller <[email protected]> Reviewed-by: Jarek Kobus <[email protected]>
* Utils: Introduce SummaryWidgetJarek Kobus2024-12-171-0/+2
| | | | | | | To avoid code repetition. Reuse it twice. Change-Id: I1ef456e2cd0325c4a37e9dc40592dad497c116f6 Reviewed-by: Alessandro Portale <[email protected]>
* Utils: Add files to qbs buildChristian Stenger2024-11-271-0/+2
| | | | | | | Amends 607750f98f8ea42a6cd5bb68a56531113472a740. Change-Id: Id76cb587196b9aa65e67415eda326d163a2c883c Reviewed-by: Marcus Tillmanns <[email protected]>
* Utils: Get rid of SingletonJarek Kobus2024-11-011-2/+0
| | | | | | | It's not used anymore. Change-Id: I1ed9953f4d23093f7e419d3f585102449b947722 Reviewed-by: hjk <[email protected]>
* Process: Get rid of process launcher implementationJarek Kobus2024-11-011-6/+0
| | | | | | Change-Id: Ief42af62f07fa19667a84b92a263c0330acc2262 Reviewed-by: Marcus Tillmanns <[email protected]> Reviewed-by: hjk <[email protected]>
* Utils: Fix qbs buildChristian Kandeler2024-10-311-0/+2
| | | | | | | Amends 46af5ac7d654a0ae2d7d12dea6bcdd68f129a320. Change-Id: I52cb8c5c89fbed9065571fece83a920a54eb2482 Reviewed-by: Christian Stenger <[email protected]>
* Utils: Fix qbs buildChristian Stenger2024-10-161-1/+1
| | | | | | | Amends 74bef9dea95455834b4a2df23324a3efcb60f493. Change-Id: Ic0b08958a2bd1899155835de76c2bb2e040f4450 Reviewed-by: Marcus Tillmanns <[email protected]>
* Utils: Turn ExtensionManager's MarkdownBrowser into a componentMarcus Tillmanns2024-10-161-0/+2
| | | | | | | People will want to reuse it elsewhere. Change-Id: If7a8c9309dabf6ba68943d30cfd41ddc25ba2476 Reviewed-by: Marcus Tillmanns <[email protected]>
* Utils: Introduce a dedicated Result classhjk2024-09-271-0/+2
| | | | | | | | | | | | | | Effectively wrapping a std::optional<QString> with the meaning that "no string" is a success result and "some string" is an error result and the string contents is an error message. This is meant to replace uses of expected_str<void> which effectively does the same, but has the peculiarity that a default constructed object means "success". The default constructor of Result is private, as "success" object Result::Ok should be used. Change-Id: If8a01b9f97a6ecd0785f5db19980605fefa5c4b5 Reviewed-by: Jarek Kobus <[email protected]>
* Utils: Add guardedCallback() helperMarcus Tillmanns2024-08-091-0/+1
| | | | | Change-Id: Ia307a4431a759f008faece8ab06400f9af2b9ea4 Reviewed-by: hjk <[email protected]>
* Merge remote-tracking branch 'origin/14.0'Eike Ziller2024-07-111-1/+1
|\ | | | | | | Change-Id: Id00d72a8707d122b72d89ed0ecf03ad5ed8230d2
| * qbs build: Do not use relative paths in Export itemsv14.0.0-rc1Christian Kandeler2024-07-081-1/+1
| | | | | | | | | | | | | | | | Those will be interpreted relative to the importing product in the future. Change-Id: I57f6159053acf1e0334d3289de1f93545e2e871b Reviewed-by: Christian Stenger <[email protected]>
* | Utils: Merge fsengine_impl.{h,cpp} into fsenginehandler.cpphjk2024-07-081-2/+0
| | | | | | | | | | | | | | Sprinkle in a few 'final'. Change-Id: Icba260aaa612e12f5c2895924273281e326ccd7c Reviewed-by: Marcus Tillmanns <[email protected]>
* | Utils: Separate non-widget related base code from layoutbuilderhjk2024-07-041-0/+1
|/ | | | | Change-Id: Ie7e7d413ed8cd4af8cdfc88c35fbdd9944d5e8b4 Reviewed-by: Jarek Kobus <[email protected]>
* Utils: Add global Lua interfaceMarcus Tillmanns2024-05-281-0/+2
| | | | | Change-Id: I8fe5813b7987f3c771a1747b1089fa2d1c717e97 Reviewed-by: hjk <[email protected]>
* Utils: Inline rootinjectfsengine.h into its only userhjk2024-04-151-2/+1
| | | | | Change-Id: Iac02bdf550ed313fec3a1c113583cd6ef1581d3e Reviewed-by: Marcus Tillmanns <[email protected]>
* Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-03-141-2/+0
|\ | | | | | | | | | | | | | | | | Conflicts: src/plugins/cmakeprojectmanager/cmaketool.cpp src/plugins/python/pythonutils.cpp src/plugins/qtsupport/baseqtversion.cpp Change-Id: Ia3e35c763ff9475d17ad922718b54152209893b8
| * Utils: Fix qbs buildChristian Stenger2024-03-131-2/+0
| | | | | | | | | | | | | | Amends 4e8bdd610b5899c83b75cebeeafcf82b6bec79f8. Change-Id: I6a187c8cd28320836a12cfc4a778d507193c52a5 Reviewed-by: Eike Ziller <[email protected]>
* | Utils: Fix build with MSVC with C++20Eike Ziller2024-02-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <[email protected]> Reviewed-by: <[email protected]> Reviewed-by: hjk <[email protected]>
* | Utils: Fix build with too old MSVCChristian Stenger2024-02-261-0/+1
| | | | | | | | | | Change-Id: Ib845a702eea3f61b3c453d3531f94a70db03a95e Reviewed-by: Christian Kandeler <[email protected]>
* | Utils: Add convenience class for parsing and caching process outputChristian Kandeler2024-02-191-0/+1
|/ | | | | | | ... and base the existing uses of this pattern on it. Change-Id: I0eaf7535b68ff8c3e8e1c923ce08e63896cc83f7 Reviewed-by: hjk <[email protected]>
* Utils: Merge NamesValueModel and EnvironmentModel (2/2)hjk2024-02-141-2/+2
| | | | | | | Rename namevaluemodel.{h,cpp} back to environmentmodel.{h,cpp} Change-Id: Idfa528b0c1c307ef4cd9dd5869f18993647b98bc Reviewed-by: Christian Kandeler <[email protected]>
* Utils: Merge NamesValueModel and EnvironmentModel (1/2)hjk2024-02-141-2/+0
| | | | | | | | | | | The abstraction is nowhere used (anymore?) In order to keep the diff small, this here merges environmentmodel.{h,cpp} into namevaluemodel.{h,cpp} which will be renamed back to env* in a second step. Change-Id: I1e7c14012ec3d3f54d8557f4b737a59ede2283e7 Reviewed-by: Christian Kandeler <[email protected]>
* Utils: Also rename parameteraction.{h,cpp} to action.{h,cpp}hjk2024-01-291-2/+2
| | | | | | Change-Id: I203909d9b2d460012b9347d507ac7a701700c48a Reviewed-by: <[email protected]> Reviewed-by: Eike Ziller <[email protected]>