Commit Graph

53197 Commits

Author SHA1 Message Date
Nikolai Kosjar
f2041c7881 Clang: Add patch fixing crash in completion
...with overloads.

https://bugs.llvm.org/show_bug.cgi?id=31093

Change-Id: I2f177794d8d84c91b5bc47da38a3a6c90f8d8d55
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-07-13 13:23:35 +00:00
Nikolai Kosjar
e88fcdbdb6 Clang: Add patch fixing crash on reparse
...in preamble serialization.

https://bugs.llvm.org/show_bug.cgi?id=20320

Change-Id: I241a04ffae7ebb1dc241bed81f2036178a86afb9
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-07-13 13:23:30 +00:00
Nikolai Kosjar
7865bb67d4 Clang: Update patch for leaking file descriptors
...to make it apply cleanly.

Change-Id: I512a48ecd7ce742885520a01bc6b774e244b1545
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-07-13 13:23:25 +00:00
Nikolai Kosjar
249b392947 Clang: Remove patch fixing mingw build
It was for llvm/clang >= 4.0, but we are still on 3.9 for now.

Change-Id: I29338b6ed90b3ac4f32021085139e6917fd5ac9e
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-07-13 13:23:19 +00:00
Eike Ziller
6afc0c3eb6 Help: Add method for showing URL in specific viewer
That centralizes all the focus setting, raising of windows, etc. This
was for example already done wrong when opening links in help mode and
external window.

Change-Id: I5036b5caa751d1f36dc442078624a31fb8f573ee
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2017-07-13 10:49:16 +00:00
Eike Ziller
be3dbd4c53 Help: Do not unnecessarily open help mode
When using the "Web Search" locator filter ('r') or "Get Help Online"
from the context menu on build errors in the issues pane, we already
know that we want to show the URL in an external browser, not help mode.

Task-number: QTCREATORBUG-17795
Change-Id: Ie7faa527907124251a60e7618747d81a6003fa19
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2017-07-13 10:06:07 +00:00
Christian Kandeler
0e2b89e637 QmlProfiler: Fix release build
A header file was indirectly included in debug mode.

Change-Id: I9142fc9b92fd6db1182c6602a0ac4a723aa2c9f7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-13 08:50:56 +00:00
Eike Ziller
f3e1b6bb6e Merge remote-tracking branch 'origin/4.4'
Change-Id: Idfb9177bc09e4db0b5750832f119fa5e19d74c29
2017-07-13 09:47:07 +02:00
hjk
611f373df6 QmlProfiler: Partially dissolve QmlProfilerRunControlFactory
Change-Id: Id902cfa6387bcb6ad96da0cd36f3114f795afd99
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-13 07:31:12 +00:00
Eike Ziller
c8affd6e74 Help: Remove trivial slots
Use one-line lambdas

Change-Id: I85d1fe33283b6c517a1942d833d6b127002540f5
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2017-07-12 14:07:00 +00:00
Kai Koehne
2eb83100ff ReadOnlyFilesDialog: Hide 'What's this' button on Windows
Change-Id: Id0f9a8ca3d0e395e46d6f7a4c01c6a33d1bc7688
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-07-12 12:43:00 +00:00
Eike Ziller
d614131bef Help: Fix setting focus to help viewer
Change-Id: Ie846d6996298b74a4b55c359787fd4f63b471cdf
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2017-07-12 12:35:22 +00:00
hjk
5e3a2b5b89 Debugger: Add a version check for GNU gdb (GDB) Fedora 8.0-13.fc26
Change-Id: Id2ccd3712370609e2d6a0b126ba2d4934ff1f763
Reviewed-by: Niels Weber <niels.weber@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-12 12:34:37 +00:00
Eike Ziller
ed850a7934 Fix build on macOS with Qt 5.6
Change-Id: I6d189aa17c43d740115cbaa5f410059f364b82d5
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2017-07-12 10:29:02 +00:00
hjk
0a2032e434 ProjectExplorer: Rename RunControl::finished to stopped
That's what it is.

Change-Id: I8cf9af23bb7cafe1cde8f165fdbf85cdeb79f7e4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-12 10:06:34 +00:00
hjk
9e67a9453a Debugger: Use a somewhat less intrusive hack for 'start at main'
Change-Id: Ie649a4a11c88f3686cd6ed1e73f34c7c78fd0e13
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-12 09:45:28 +00:00
hjk
5868c1e53b ProjectExplorer: Remove unused RunWorker functions
Change-Id: If5d7368cf46b789c80162271cb6e71ebaae1548e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-12 09:10:00 +00:00
Eike Ziller
d522ec373f Merge remote-tracking branch 'origin/4.4'
Change-Id: Iec15792ab28b3d34234d8e564a8ee33808772fa8
2017-07-12 10:52:25 +02:00
Eike Ziller
5a1a20f2ee Merge remote-tracking branch 'origin/4.3' into 4.4
Change-Id: Ifb1dcc847ba4b32a79b349955fad5207e402cb7b
2017-07-12 10:50:49 +02:00
hjk
cdca4bd9df Qnx: Prefer SimpleTargetRunner::setRunnable over RunControl::*
RunControl::setRunnable is meant to go in the long run, individual
RunWorkers are better suited to handle their needs (and only their
needs) than trusting a one-Runnable-fits-all-workers-in-RunControl
setups.

Change-Id: I6bdb32cc69581503dd252af83b75428c0de2f648
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-12 08:22:30 +00:00
hjk
7a64a73c4e Debugger: Remove unneeded friend and member
Change-Id: Idf5297b2b29f74722bfc7f8ae1b1aa7e6de92f90
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-12 08:22:14 +00:00
Thomas Hartmann
16e5b61880 QmlDesigner: Turn FormEditor item into QGraphicsItem
QGraphicsObject is a QObject and significantly heavier
then QGraphicsItem. There is no need to use
QGraphicsObject in our case.
Using QGraphicsItem instead is simply good practice.

Change-Id: I65f9db85eace25fd0e7873093e903d923eb338dc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-07-12 07:25:11 +00:00
Thomas Hartmann
fde2bc2571 QmlDesigner: Show message box if StatesList.qml cannot be created
I also removed the hard assert.

Change-Id: Ia15d9f82fb63e7d8dd6acf8547b9e96bad838d3f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-07-12 07:24:51 +00:00
Thomas Hartmann
1789422de8 QmlDesigner: Check for qmldir of QtQuick.Controls
If QtQuick Controls 1 are missing there is no reason to
build QmlDesigner.

Change-Id: Ic8777fef6addc460b05c8218d96aa13379f02cea
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-07-12 07:24:41 +00:00
Thiago Macieira
d6b6a88753 Debugger: print QFlags and bitfields as hex
It's a lot more useful to see in Qt Creator:
  QAbstractFileEngine::FlagsMask (0xff00000)

Than
  QAbstractFileEngine::FlagsMask (267386880)

Change-Id: I8d96dea9955d4c749b99fffd14cd690574b433e5
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-07-11 23:57:19 +00:00
Orgad Shaneh
d294f91758 main: Remove unused variable
This amends commit a6c17fc537.

Change-Id: I365513a9e11e6c07310799f87a4e299cd110dcf3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-07-11 20:28:26 +00:00
Orgad Shaneh
2a197ed9bf Revert "App: (Re-)enable automatic HighDPI scaling for Linux"
It breaks running over PuTTY with VcxSrv.

This reverts commit 36c8227caf.

Task-number: QTCREATORBUG-18467
Change-Id: Id93497ee24cdb574d1e4a1ac1b0fb112012a695d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-07-11 20:28:14 +00:00
Jochen Becher
05f7b92f0a ModelEditor: Introduce QMT_ASSERT
This change shall solve a lot of Coverity findings

Change-Id: I1e699f7363426e9b6008fc77d3f498fe3d968b4f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-11 20:17:55 +00:00
Jochen Becher
8ccdbe1944 ModelEditor: Satisfy Coverity using Q_UNRECHABLE
If I remove the switch cases gcc produces a warning. Coverity recognizes
the cases as dead code and produces a finding. Maybe Q_UNRECHABLE is
modeled in Coviery to suppress dead code issues.

Change-Id: Idae2c088ba95b3e00cb4ef788d075fe7e0d4b6a5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-11 20:17:46 +00:00
Jochen Becher
706b0874f5 ModelEditor: Fix a number of trivial coverity issues
Change-Id: Ie61e017b993ac788284611fb40052e5f59521a56
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-11 20:17:28 +00:00
hjk
0d06dbb5b2 BareMetal: Dissolve BareMetalRunControlFactory
Less code.

Change-Id: Ie3bd75557e4f4b5acff65a9b3a074692ea652253
Reviewed-by: hjk <hjk@qt.io>
2017-07-11 16:06:08 +00:00
Hannah von Reth
ada1429594 Introduce setPerspectiveEnabled
This enables us to mark perspectives as disabled.

Change-Id: I52b2434f33f8550b6d2459f915dfd8cdb1389140
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-07-11 15:38:49 +00:00
hjk
82f8cb70e6 WinRT: Dissolve RunControlFactory
Less code, and it's what most other targets do nowadays.

Change-Id: I2cf55d1a32ad10427ce2508536d03bca8921b451
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-07-11 14:57:16 +00:00
Ivan Donchevskii
550ed2927d C++: fix lookups for functions with const args
Make declarations equal in case they differ only
by argument const and/or volatile (13.1.3.4).

Task-number: QTCREATORBUG-18475
Change-Id: Id0561fda3b9081b92716a8739ba9963e90b5d709
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-07-11 13:38:56 +00:00
hjk
20b6ccd23b Locator: Add a virtual destructor to BasicLocatorFilterTest
Change-Id: Ic5947003945d4cfc87484106052e98e06e4e700a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-07-11 12:54:07 +00:00
Tim Jenssen
429163ea1e Qmljs: fix a crash when m_treeview is deleted
Change-Id: I3743815c14151b49784a20cdb0c0bba2fbde4e7b
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-07-11 12:30:07 +00:00
hjk
e9718b253a Debugger: Partially dissolve DebuggerRunControlFactory
Aspect creation must stay for now as the object pool is the only
central registry for it right now.

Change-Id: Ibe42009db6b0351aaa36e9ac8f0f6f7a0562167e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-11 11:10:44 +00:00
hjk
6f0a600bcf Debugger: Streamline error string handling
Let the workers keep track of errors instead of passing around
string pointers in some but not all interesting places.

Change-Id: I3956bc947a50747dd3a0c9302b9f9873d192e9c6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-07-11 10:53:00 +00:00
Tobias Hunger
53c85a2676 Project: Use more std::unique_ptr
Change-Id: I06114e79b0a5b58b3dc4d13279232392709e9efc
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-07-11 09:54:18 +00:00
Robert Loehning
8637d04c1d Squish: Update expected text in tst_git_local
Change-Id: I97a532f80b9dc2b40ec5931116b207cfaeef8f4b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-11 09:20:27 +00:00
Robert Loehning
8c66ecfaa3 Squish: Expect wrong popups to be fixed
Task-number: QTCREATORBUG-15710
Change-Id: Id4a0e3e42249cdd281ed79b0914faacfb3450e37
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-11 09:20:06 +00:00
Robert Loehning
29504197d7 Squish: Handle "Fixed" status in workarounds
Change-Id: I0df22407e19a71a4ab216d413ce682a793287aa3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-11 09:19:26 +00:00
Jake Petroules
091ae3db31 Remove the last usage of deprecated Carbon APIs from Qt Creator
Change-Id: I05c8345e5f1618e7ecbb8a9c27feb5b9a321dc11
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-07-10 16:49:11 +00:00
Christian Kandeler
3b956976d7 QbsProjectManager: Fix qbs build against installed qbs
Change-Id: Icfe86b98ab8162fe613dbf089fec1692c5d3dbea
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2017-07-10 14:14:14 +00:00
Ivan Donchevskii
287ae7ae61 Completion: improve complete in the middle
Apply clang fix to the old code model
Do not replace the text after cursor if
the proposal does not contain it or
if proposal matches 100% the text after it

Task-number: QTCREATORBUG-18471
Change-Id: I662cb6e48a9e0ee14065594f5c823f114fff2474
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-07-10 13:52:18 +00:00
Nikolai Kosjar
e1de989e16 Clang: Show inline diagnostics only for project files
When navigating to headers that are not part of the project, avoid
showing the inline diagnostics. In most cases, these files can't be
changed.

This helps also for the session-load case where files are opened/parsed
when no project information is available yet.

Change-Id: I7fce24af78b3b1efbf64dd27d8ca2a053e02d4ec
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-07-10 12:32:07 +00:00
Christian Kandeler
dc1bdc9bec qbs build: Adapt to renamed Qt.core property
Change-Id: Ie05ad37ae7711a6deb152c5aa0a926e9b83b082b
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2017-07-10 11:51:46 +00:00
David Schulz
4b787386ae Debugger: Fix detection of the latest cdb in qbs builds
Change-Id: Idd0115937c6db36f64087f49c116339f291bfcd3
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2017-07-10 11:09:28 +00:00
Eike Ziller
c363c1d4ee Add locator input widget to help windows
And move the "Show Sidebar" button into the status bar that we
need now anyhow.

Change-Id: I24bfa0991cbdcdba4d1a8cd6cbacde28d459972d
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-07-10 09:58:02 +00:00
hjk
acc86aee5a ProjectExplorer: Move re-runnable decision to RunWorkers
A RunControl is re-runnable if all its workers are,
a RunWorker is re-runnable if it's Stopped and unless it
says otherwise.

Also ensure SimpleTargetRunner only reportStop() once
per run and make process error message re-usable.

Change-Id: I73f5fb724d3026ceb81d5e32a3a71b4814b2bca9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-10 09:02:17 +00:00