QLockFile documention states:
When protecting a resource over a long time, however, the
application should always call setStaleLockTime(0ms) and then
tryLock() with a short timeout.
Without the 0ms stale lock time the new Qt Creator instance would think
that the lockfile is stale and starts a new instance!
Amends dd1c9d1b71
Fixes: QTCREATORBUG-30624
Change-Id: I0c0166239242895e25c7bf05d59a371cd0295758
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
QTemporaryFile was used just to generate file names for shader files,
and the actual files didn't get removed at shutdown. There was also
a possibility of reloading effect quickly, which left additional
dangling compiled qsb files because they are generated asynchronously
with a separate process.
Now temporary shader files are gathered into one temporary directory,
which removes itself at shutdown, so dangling files won't be an issue.
Fixes: QDS-12711
Change-Id: I7ce682acb1a0d8d58b84129c4e0442c8fb63ac2f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Install lua files to shared data by default.
Change-Id: I550f0f3a888376c93ad8b68bc7630b6f5f029979
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
... and make use of it.
In most contexts, apply() immediately follows setChangeSet(), so
combining the two can save a lot of code on the call site.
Change-Id: I421001bd47000cb64678a57b19760becf59a4863
Reviewed-by: David Schulz <david.schulz@qt.io>
Look-at gizmo can be toggled from visibility toggles submenu.
Look-at gizmo is hidden when fly mode crosshairs is visible.
Fixes: QDS-12767
Change-Id: I2c71b23f14e403c9774498937764607cfea3bd1d
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Got rid of the separate accept button. Now the import button turns into
accept button after preview is shown, as long as user hasn't changed
any options.
Import preview is also generated automatically using default options.
Fixes: QDS-12822
Change-Id: I5f1080f855cf1ba09e917cef7741534c0fb16d8c
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Allows plugins to install packages they might need.
Change-Id: I4948dd0a6568e093fc35e4486d2e2a084090e103
Reviewed-by: David Schulz <david.schulz@qt.io>
Don't schedule queued calls to MessageManager::writeSilently()
because the implementation is already thread-safe.
Change-Id: I389afb9400afe6b3bc2716c0e352828c5c2cb909
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
E.g. from one group to another.
After removing the file from the first group/product, we need to wait for
a re-resolve before we can add it to the new group/product, because
otherwise the location stored in the build graph might not match the file
contents anymore, causing the insert operation to fail.
Change-Id: I0a6a92cf0a1aca6ecedeb9c4606809e5d65bb97d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
A CppRefactoringFile is created for us when quickfixes are collected, so
make use of it instead of creating a new one.
Change-Id: I133b43f92d1fbea82aa25df025cfc257691de2a6
Reviewed-by: David Schulz <david.schulz@qt.io>
... and throw away old workarounds.
The current clangd version, to be shipped with Qt Creator 14, is 18.1, so
we can safely bump the minimum version to 17.
Change-Id: I74fd5997196d774b6c47dcb522284953ef82ad9c
Reviewed-by: David Schulz <david.schulz@qt.io>
... and use it for CheckableMessageBox. This enables using
the proper parent e.g. in upcoming changes to ExtensionSystem.
Change-Id: Ib0e52cbd3e73dc628955918e3f443ff65cccb189
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This allows using the scanner on remote paths and avoids some unneeded
FilePath::fromString and FilePath::toString calls.
Change-Id: I4871613a9d36daf78607b196f4dfb6e165be8305
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Rename DeployErrorCode into DeployErrorFlag and make
it a flag type.
Change-Id: I459a72a3a0a1dcddc275cd649a7f55c15369359d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Fix tr() messages so that they don't contain newlines.
Change-Id: I705e56796393501da1a2917adb6673a24c1cbcf6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
By default, optipng reduces pngs with very few colors to using a
palette. That happens also for images with alpha channel. Some tools do
not support palette+alpha well, though.
The images in this change were re-saved as 24-bit version and then
optimized via optipng using the "-nx" option, which prevents color
reductions.
Change-Id: Ib6f04c64724913ea02fcaa442a914b6b79b92a55
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Hide waitForBooted() in cpp.
Move avdManagerCommand() into avddialog.cpp, as it's the only
one usage of this method.
Change-Id: Id88ecbb5532a7d2594c65dddc8245573efd41018
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Qt Creator opens by default the offline documentation of CMake.
But the user can click on the "Globe" to go to the online version
of the documentation.
Change-Id: I0b3a6bceb13784b232b539f1c04bd09aa3a11034
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Qt and std container like different size types
creator/src/libs/3rdparty/sol2/include/sol/sol.hpp:13844:15: warning: comparison of integers of different signs: 'std::size_t' (aka 'unsigned long') and 'qsizetype' (aka 'long long') [-Wsign-compare]
13844 | return idx >= cont.max_size();
| ~~~ ^ ~~~~~~~~~~~~~~~
creator/src/libs/3rdparty/sol2/include/sol/sol.hpp:13902:9: note: in instantiation of member function 'sol::stack::unqualified_getter<sol::as_table_t<QList<int>>>::max_size_check' requested here
13902 | if (max_size_check(meta::has_max_size<Tu>(), cont, idx)) {
| ^
creator/src/libs/3rdparty/sol2/include/sol/sol.hpp:14140:15: note: in instantiation of function template specialization 'sol::stack::unqualified_getter<sol::as_table_t<QList<int>>>::get<sol::nested<int>>' requested here
14140 | return g.get(types<nested<V>>(), L, index, tracking);
| ^
creator/src/libs/3rdparty/sol2/include/sol/sol.hpp:11719:15: note: in instantiation of member function 'sol::stack::unqualified_getter<sol::nested<QList<int>>>::get' requested here
11719 | return g.get(L, index, tracking);
| ^
creator/src/plugins/lua/bindings/settings.cpp:269:55: note: in instantiation of function template specialization 'Lua::Internal::typedAspectCreate<Utils::IntegersAspect>' requested here
269 | return createAspectFromTable<T>(options, &typedAspectCreate<T>);
| ^
creator/src/plugins/lua/bindings/settings.cpp:314:9: note: in instantiation of function template specialization 'Lua::Internal::addTypedAspect<Utils::IntegersAspect>' requested here
314 | addTypedAspect<IntegersAspect>(settings, "IntegersAspect");
| ^
Change-Id: If67ca19aa995622ef476386544b02a77b5af5916
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Add instructions for setting the language when running from CLI.
Change-Id: I5c9562e41e665a70154cdbe4f231274006ec98aa
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Do not update states label with empty strings while
debugging as this overrides real state information
when performing additional actions like fetching
variables, stack, and so on inside the debugger.
Change-Id: Ic026644931c845b6f3fb5bb422acc6e36e4a4142
Reviewed-by: hjk <hjk@qt.io>