* use nullptr
* override
* remove old style casts
* fix most of the code model warnings
Change-Id: Ia08e846f9326ae28ca7e7d66748e25a8b817b9b1
Reviewed-by: Xing Xiong
Reviewed-by: David Schulz <david.schulz@qt.io>
Support for several controls has been added to the Library in the
Design mode.
Change-Id: I9822f7379991eea3b32f47574e3c3548445d538d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
As QML currently does not expose a command to atomically enable or
disable a breakpoint, we need to remove and re-insert it. The previous
code scheduled the removal through a timer, and depending on if the
timer hit before the insertion or after, the operation was successful or
not.
As the QML engine doesn't have to be in a specific state to insert and
remove breakpoints, we can just directly send the messages instead and
therefore be certain that they arrive in the right order.
Task-number: QTCREATORBUG-20795
Change-Id: If69797b2c75e1107ad552f88e709e1580b4164db
Reviewed-by: hjk <hjk@qt.io>
GCC 4.9 is old and buggy, and major distributions nowadays
provide GCC >= 5.3 for their stable/LTS versions.
Change-Id: Ic94f28154cfd055eebf50d762935cc269afe00a6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Add version information as well as limit the supported languages to C++.
Change-Id: I7a931139c6eb1a4457a89925fc7497c754184833
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
It breaks cross-compilation on linux/mingw.
This reverts commit 1c014ed3d9.
Change-Id: I3e8183ec318541a4393ad242eefbdeaa78b7be44
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Using the numerus form requires "%n".
Change-Id: I18e32795d6f4f58e9b531e89572351d6520e7e33
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Currently, the Display (confirm) button is located on the left of the
Close button on all platforms. This looks odd on macOS, as the
confirmation buttons are normally located at the very right there.
This commit fixes this issue by using a QDialogButtonBox to display
the buttons.
Task-number: QTCREATORBUG-10440
Change-Id: I453e01d9cce01ad2f5620099defa0e71477398b7
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
The code handling the transition to targets/kits is huge and rarely
used (if at all) and has been changed way too often for me to feel
comfortable that this will still work reliably.
Let's get rid of it.
For reference: Qt Creator 3.0 was released December 12th, 2013
(http://blog.qt.io/blog/2013/12/12/qt-creator-3-0-released/)
Change-Id: I75dd3cc92a7231904105d7fc68c2ca029e6a571e
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
we want to use images from some plugins and to reference
those, we need IDE_SOURCE_TREE variable.
Change-Id: Ia7e83a4d2e65ff34a839732fb24a0804aca007d9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Add a classId to TraceEvent and TraceEventType and add is() and as()
methods that check for it.
Change-Id: I76fe1df624516b36db90d57d4788b17e0b690726
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
The FileInProjectFinder has its own cache. We don't need to duplicate
it.
Change-Id: I90450ac734953e3747e55cb74505dd48e5f22f6e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Instead of laborously calculating which properties have changed under
which circumstances, we can just connect the signals of dependent
properties. This will give us a few false positive signals at a greatly
reduced risk of missing some actual change. Also, the number of expanded
and collapsed rows will always be determined by the content of the
model. We don't need separate signals for those.
Change-Id: Id8495ee525a91405b039fd032509afa125f96412
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
The d_ptr mechanism has no benefits here and just adds overhead.
Change-Id: I5327bf6fab3b531b892dd85da35f1d07c7ac4c5d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
QLibraryInfo::location() returns one string. Iterating over that gives
us the individual characters, beginning with '/'. Running that through
FileName::fromString(), gives us "/", and feeding this to
ModelManagerInterface::importScan() is not funny.
Change-Id: I627e5739337efacc0632d8a476bb5ad3093793ea
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Creator registers a "Collapse All" action for the Project tree. Make
this work again.
Task-number: QTCREATORBUG-20771
Change-Id: I49f1c8a97c4eb22ef6f7f703eefdfe46c3c0a035
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This makes e.g. %{CurrentProject:VcsTopLevelPath} in the kit's
environment much more useful.
Task-number: QTCREATORBUG-20752
Change-Id: I4bf49e61a7a7281a6c9bf039a1d9118b6e4060ef
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Fall back to SessionManager::startupProject more often.
Creator used to have ProjectTree::currentProject return a nullptr
e.g. right after the first project is loaded via the menu (and before
the Project tree widget is 'touched'). It also returned nullptr
when closing a project via the menu (again till user interaction
with the Project tree widget).
I think this is wrong, especially in the light of %{CurrentProject:Foo}
macro expansion.
Change-Id: I1c980382548792181584ec3dfc0d919e939111d8
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
They appear a lot in Clang headers. Until this is fixed in Clang, suppress
them.
Change-Id: I5292ae442089aec3f52ba846ee21e0bd9e61d0cb
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Although Windows is case insensitive, and lower case always works, Clang
complains:
Lexical or Preprocessor Issue: warning: non-portable path to file
'<FooBar.h>'; specified path differs in case from file name on disk
Change-Id: I8f94e9fb62f6afec8aa6b9d08a7c78f6ba8a4435
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>