This makes later reasoning on what can (not) happen in the destructor
easier.
Change-Id: Icec12738e37c95d8d318d0d8fc2bc9b0b60e436d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
In expanded items in the session list in Welcome mode.
Adapt the project display too: We showed the base name of the project
file as the project "title", which is "CMakeLists.txt" for all CMake
projects, and also for other projects doesn't really add interesting
information over the file name that we show.
If there are projects in the session, show a title "Projects" and the
list of open project paths.
If there are no projects, but open files, show a title "Files" and the
list of open file paths.
Limit the list of paths to 5 in both cases (adding "..." if there are
more).
Fixes: QTCREATORBUG-7660
Change-Id: I2e250c54f88932aaa95b926f60e0005da9c7a89e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
So we can add reading the settings just to retrieve a file list in a
second step.
Task-number: QTCREATORBUG-7660
Change-Id: I65856ab97bfe2ee69194d484926f83621fa85327
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
If `minQtVersion` exists for a material in material_bundle.json file,
and kit version is less than `minQtVersion`, the material should be
skipped.
Version class has improved and moved to QmlDesignerUtils.
Task-number: QDS-13274
Change-Id: I726c1765c69e5b080650099d0b811a90cfc3ccf5
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
"loop variable ‘var’ of type ‘const QByteArray&’ binds to a temporary
constructed from type ‘const char* const’ [-Wrange-loop-construct]"
Change-Id: I663dcb0c990ee125be9b90640e2925014f7166d1
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Use the full path to the 'go' executable instead of assuming that it is
in the PATH, like already done for upx.
Change-Id: Ic28c4d0b729a66bc4917c1133d4b91b9c2c019eb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
The QContainer Naming War is over. QList won.
Change-Id: I8193b1b51619502533b74d6e965ec9b664f8dbce
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Allows users to use "%{Lua: ...}" to execute Lua code in their macros.
Adds "Macro" module with expand() and value() functions.
Change-Id: I6315b0646fbb503a77fd0cc631aed204abf3b699
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
The action for disabling or enabling all breakpoints
is quite hidden inside the context menu.
Make it more obvious by adding something similar to
the debugger tool bar.
Change-Id: Iedd1a03912eeca635ebc41b067ec785bb55d3474
Reviewed-by: hjk <hjk@qt.io>
This will result in "Project View" the "CMake Modules" folder to be
hidden if it only contains CMake files from CMAKE_PREFIX_PATH or
CMAKE_FIND_ROOT_PATH.
Users of QtQuick or Qt Widgets applications will no longer have to see
the "CMake Modules" with "<Other Locations>" and the paths to the Qt
CMake files.
This way the CMake projects will resmble the QMake projects.
Change-Id: Icde9a556be5bceccdb4abb11072fbd17b59dce4d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Amends 6c5717844d
The CMakeBuildSystem::clearCMakeCache() would call
BuildSystem::emitParsingFinished which would clear the configuration in
the widget, effectively removing any "Initial Configuration" changes when
clicking on the "Re-configure with Initial Parameters" button.
This commit makes sure that the updateInitialCMakeArguments() function
is called before CMakeBuildSystem::clearCMakeCache(), and that only the
"Build > Clear CMake Configuration" action would
"disableCMakeBuildMenuActions" which is what an user would expect.
Fixes: QTCREATORBUG-31320
Change-Id: Ie7810c9bed000ca19a31a6ab8e7a281ae9f5e6f0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Previously only backslashes were taken into consideration. Now also
slashes, since CMake supports them for Xcode and Visual Studio
generators.
Fixes: QTCREATORBUG-31305
Change-Id: I096540769ee53ce7c30c0543d1bd250f098ac19c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
The CMake "Resources" source group is being extended with "*.qrc *.svg
*.gif *.ico *.webp"
The "Forms" and "State charts" are taken from QMake and group "*.ui" and
"*.scxml".
Fixes: QTCREATORBUG-31308
Fixes: QTCREATORBUG-31312
Change-Id: Ie83c185769637f70731ef775cda16a61de708b20
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Also, de-QObject-ify and inline the Context wrapper structure
for the key strings.
Change-Id: I21f3afec61ef9ecfcc4c3d89afb9fb3a1548afae
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
The new field "LuaCompatibleVersion" is required when a lua plugin depends on a C++ plugin. A dependency will be fulfilled if:
"LuaCompatibleVersion <= dependency.version <= Version"
Change-Id: I61466055a56e20abbb1fa5f73a5735a0e3a4c471
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
That's what they were intended for. There appears to be no use case for
them to represent e.g. a nim compiler.
Change-Id: I8070fb837fe411c3e2b6e5a335e642497437896d
Reviewed-by: hjk <hjk@qt.io>
As one can easily see in the toolchain settings page, there are Android
C compilers, so don't claim the factory supports only C++ toolchains.
Change-Id: Ib84b7a70ef3359a7143e3f320fdb2cc913bfb24b
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
As the IEditor interface suggests, not the other way round.
This way the widget doesn't have to know about the editor.
Change-Id: I49e69047544dc89efdbcff51f2550ca827072c91
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Rename the merged content in manifesteditorwidget.* to
manifesteditor.*
Change-Id: I417b427ea7ecbe1f76364a08981a45cfef2ca562
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This is the first part, actually merging the opposite direction.
Second part will rename the result. This are, also in total, much
smaller patches then doing it directly.
Change-Id: I76cf3e3b5d71390c746aeff6b412d535ea7f520f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
The executable can be in a different directory.
Change-Id: Ie630d464734d1ef9d0a9e1adfb8da8e56c67b5dd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Amends 79612417e3.
Translating the id() does not work this way, lupdate only handles string
literals within tr(...).
As the factories already have a string meant for display, use that.
Change-Id: I335ac1d4b8984d0db7f7a6bea8a906bd39ca4864
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
When the arguments contained html-tag like parts (e.g. "<br>") they would disappear from the summmary.
Change-Id: I7e286ef439af2883152a147aad55f2b9bea6e2d3
Reviewed-by: hjk <hjk@qt.io>
It's going to be used in couple of places.
Change-Id: I21c7724da03fb1d294d53fbb372ca4b909a3a842
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>