This helps to debug e.g. runGcc(), which is used for detecting
predefined macros or header paths for the code model.
The log gives also a (limited) overview of the (blocking) processes that
are run on Qt Creator start up.
The produced command line is copy-pastable.
The generated output looks like this:
qtc.utils.synchronousprocess: Starting blocking: /usr/bin/x86_64-linux-gnu-gcc-8 -dumpmachine
qtc.utils.synchronousprocess: SynchronousProcessResponse: result=0 ex=0
17 bytes stdout, stderr=""
qtc.utils.synchronousprocess: Starting blocking: /usr/lib/icecc/bin/clang++ -x c++ -E -dM -
qtc.utils.synchronousprocess: SynchronousProcessResponse: result=1 ex=115
0 bytes stdout, stderr="ICECC[9867] 2019-07-03 13:00:35: couldn't find any clang++\nICECC[9867] 2019-07-03 13:00:35: could not find clang++ in PATH.\n"
"The command \"/usr/lib/icecc/bin/clang++\" terminated with exit code 115."
Change-Id: I9bc7b24121801b0c98c52416848734d850aa9f4d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
QUrl does not have good support for relative file paths, and it
seems there is little interest to change it: QTBUG-44921
Work around this by constructing the QUrl again on failure with
fromLocalFile(). In this case, the "file://" scheme has to be omitted.
This issue was detected because some compilers generate paths with
native Windows separators, like "..\main.cpp" for the __FILE__ macro.
Debugging the issue showed, that rather the relative path was the
problem, as the QUrl constructor does not support it.
Change-Id: I30074a3d11f9f43e05cd202f6d86c752ce184785
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
We need to use the '--c++' option instead of '--ec++'
to dump the macroses and headers for the C++ language.
Change-Id: I545e661babc1ffa84ef189d28b2dd59bc3ccf29b
Reviewed-by: hjk <hjk@qt.io>
Apparently these can be sent synchronously on trying to send something
over the wire. Synchronously handling the signals at that point is
dangerous as the rest of the system might be in some transitional state
(e.g. just destroying the clients).
Fixes: QTCREATORBUG-22640
Change-Id: I21a0c92a6334d401390cf6d92b9b855b83cc6307
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Nesting the dtors of the different clients is dangerous as the
connection might call back into a virtual function of a half-destructed
object this way.
Fixes: QTCREATORBUG-22640
Change-Id: I91fccc41fbea40a7f78ef344759abe26d140434d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Allow custom '.' properties to show up in custom editor
* Allow custom property editors to span multiple sections
This allows us to support alias proprties to e.g. Text and Rectangle
items.
Change-Id: I7939a5cf5769387dbb3a27df0fd9e74c493a577c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Otherwise, we get thousands of warnings from Qt, e.g.:
qvariant.h:275:25: warning: implicitly-declared ‘constexpr QVariant::Private& QVariant::Private::operator=(const QVariant::Private&)’ is deprecated [-Wdeprecated-copy]
Change-Id: I8b3bbfae6791adca8bcfacc7ad5ab46701474aa4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
... to detectForImport(). The overloads have different purposes,
sharing the name makes reasoning about them hard.
Change-Id: I57bfbbc1aa06ef85251e39c404bdbe5584a2ea41
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
As replacement for functionality that's being deprecated
in Qt but still useful or needed, or that cannot easily be handled
without resorting to #if QT_VERSION checks in user code.
Change-Id: Id3575a54ff944bf0e89d452d13944fcaee270208
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Transfer all changes which came up while Qt Creator integration
* Refactor states by using dedicated edit property
* Refactor alias properties
* Set SpinBox slider indicator default to false
* Add CheckBox tri-state
* Fix Menu closePolicy
* Remove some connections
* Fix TranslationIndicator
* Add new values and fix some missing scale factor multiplications
* Add new icon font
* Use MenuItem instead of Action for context menu due to shortcut issue
* Add RealSpinBox due to the following bug QDS-806
* Refactor SpinBox with findings during RealSpiBox implementation
* Fix SpinBoxIndicator enable/disable state
* Fix RealSpinBoxIndicator enable/disable with a new property called
realEnabled and synching between the actual property and the new one
* Make RealSpinBoxIndicator increase/decrease on release
* Add drag start/end signals
* Fix indicator behavior exiting/entering while pressing (and holding)
* Fix wheel and dragging step size for increase/decrease
* Fix reset of step size for cursor keys
* Fix press and hold timer
* Set decimals 0 by default (int by default)
* Replace SpinBox with RealSpinBox in HelperWidgets
Change-Id: Ieda049595e6483b052fcdf4ca597f6af66e5f4dc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
For example, aborting a "git pull --rebase" command
did not work, because the old code tried to run
"git pull --abort" instead of "git rebase --abort".
As side effect, this patch also enables the Skip commit
button in handleMergeConflicts(), that was not shown
before.
Change-Id: Ifa43a4ba0199c97fdf8a361eb9e0207704d93e26
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Makes it possible to access the entry lists if these were populated by
the code.
Change-Id: I066824d2ce7f75a38d208155156c93d06458f8b3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
entryInfoList and entryList is not supported by cdb, because we cannot
call the count function to populate these lists.
Change-Id: I6f1f2b5905232d4b220120b1b0a20bfea029c9f0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Checking out a branch that has a saved stash, when
Pop branch stash is checked, is broken since checkout
became asynchronous.
We must wait for checkout to complete before popping
the branch stash.
Change-Id: Ia4d43649e742ced0121ffe106986b4d6ed1e7b38
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This lets users specify that a class derived from a custom base should
have a Q_OBJECT macro, and it also allows them to opt out of it for
classes derived directly from QObject & friends.
Fixes: QTCREATORBUG-21810
Change-Id: I850bd3bcb7b6eb71720afe5fa097178ff5d5c620
Reviewed-by: hjk <hjk@qt.io>
Add tests for the cases where std::vector and
std::basic_string are used with custom allocators,
which were fixed by commits
01f26bd5b7
("Fix std::vector<bool> printer with custom allocator")
and 5eba3bde93
("Fix std::basic_string printer with custom allocator").
Change-Id: I4de9de551d329b7d2ea821d09b04d39da13f1edf
Reviewed-by: hjk <hjk@qt.io>
The iterator type is std::_Rb_tree_iterator<std::pair<K, V>>
Change-Id: I0ed2f2e6955deb4b402277fe0f3eb32b6af2d477
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This function is a building block for other operations. Emitting a
signal from it will likely provide subscribers with invalid state.
Fixes: QTCREATORBUG-22628
Change-Id: I975638dfa3b453a54c747186b0f6b834c02be035
Reviewed-by: Christian Stenger <christian.stenger@qt.io>