Add some debugging code checking integrity of diagrams. Based on the
analysis avoid chrashes if ends of relations on diagrams are gone.
Change-Id: I86da4a6d422de5d51e551b44e7842e992590958c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
libclang 3.8 seems to be sensitive to file paths separators [1]. On Windows,
this led to not updated document annotations and/or crashes after reparsing.
When passing file paths to libclang, convert to native separators.
When getting file paths from libclang, convert back.
This handles:
* main file path
* file paths of the unsaved files
* -I<DIR> arguments, the resource path (for builtins) and the paths to the
wrapped qt headers
* included header files from libclang
* source locations from libclang
Also, minimize the conversion in SourceLocation to a minimum by making
filePath() lazy.
[1] https://llvm.org/bugs/show_bug.cgi?id=28381
Change-Id: If5866f34a6fdc6b34b16c022d3988e8e6eae2a0a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Before accessing qbs::Project methods, we need to check whether this
object is valid.
Change-Id: I6c54f5b1118a3960b4814af647d81f5786fa452d
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
The text in the FancyActionBar actions had hardcoded text colors, which
by accidend looked OK with the current themes. But light themes require
these texts to follow the theme.
This patch removes the uncommon "shadows" under the text, instead of
trying to make text shadows themable.
Change-Id: Ie0e3a9673f24ead64dcdd8963319dc1908afb3aa
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Use the themable ones from Core::Icons instead
Change-Id: I45e831e9b0586bfde6468acca07b6138b48f82e0
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
In the property editor there is no hover effect.
The hover effect is simply not required.
Change-Id: I7e918be7e0ac2186fa02c2cae30ad19e90e8ac75
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Dynamic Properties was to long since we have to set a fixed with
for tabs when using css.
Properties should be still clear enough and the preserved
space imrpoves usability significantly.
Change-Id: I484822918d78e89e96c587314bcaeda78c7e95b0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This is more consistent with the new flat style and the QML styling.
Change-Id: I750620227dc0b79a6518dcef9cfb86986a09cef4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
The heavy lifting was done by clazy.
Change-Id: I1a03435bbb4281bad4ff64baba0182e0050170d6
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
qrc:/timeline/TimelineContent.qml:147: TypeError: Property 'clearData'
of object Timeline::TimelineRenderer_QML_135(0x99b4468) is not a
function
Change-Id: I2adfaa9ad764cde42462de6ebc22a897d3b7a74c
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Somehow thought that displayName is already in
QAbstractListModel::roleNames(). Also removed unnecessaey default
roles.
Task-number: QTCREATORBUG-16483
Change-Id: I6651502ee91b20eb1af7e22a67b6b67077ad8aaa
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Add a helper function that casts the project to QmakeProject. Will be
used in the follow-up commit for connecting a slot.
Change-Id: I17e23630ac88c117da9bac61dd045f94661e35f0
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
To HEAD of master branch. Plus some necessary adaptations due to API
change.
Change-Id: I906918223de3946ae532ae4042c2545dd53b66cc
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
To be consistent with other ways of starting external editors.
Change-Id: Ia6f8d2179076482999ef527353feb91a49e1a2d9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This avoids failing updates of the main window (e.g. windowTitle)
before the main editor area is displayed first time.
Change-Id: I5c559f9487872e47b1fd914f0aec16b0b2f1dec3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
We want to share more functionality of the IPC mechanism and for what we
need more interface classes. But we use this names already for the
ClangCodeModel implementation. So we rename the them to ClangCodeModel*.
Change-Id: Ie320e0d3b993586a9bcc6a5aa0d32427af41202e
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
The "Go to implementation" context menu was adding a new signal
handler if no signal handler was already present.
This does not change, but I add "Add new Signal Handler" that always
adds a new signal handler, even if one already exists.
Change-Id: I7d1f012fda114d22598a9dd650ee14d97d48cd1d
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
There exists cases where collecting the properties is
very slow. We only have to do this on demand
for the property editor.
Change-Id: I92d7270481db94655c95ab8d69f373488d841b4e
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This triggers an update on every qrc file.
Change-Id: Id34873e3bd8190d79773fbc3a8a90699d4e49cb0
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
The heavy lifting was done by clazy.
Change-Id: I841454b0815bc697ae2372dbc6d2caa59d7dc3e8
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
The only Qt4-style [dis]connects left are in BaseTreeView::setModel.
Change-Id: I53bb715750c65827005cc96939a6714606e60f81
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>