Commit Graph

57165 Commits

Author SHA1 Message Date
Alessandro Portale
d814dbce6a QmakeProjectManager: Modernize more
Some files (mostly headers) were missing modernization for:

modernize-use-nullptr
modernize-use-override
modernize-use-using
modernize-use-default-member-init

Change-Id: I7027efac7daa3645af21ac25c0301105945e04da
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-07-23 11:04:42 +00:00
Alessandro Portale
e38410b76c Utils: Modernize
modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
modernize-use-default-member-init
modernize-use-equals-default

Change-Id: I8d44d9405011a1878353baf9325f7af90b89db02
Reviewed-by: hjk <hjk@qt.io>
2018-07-20 13:36:22 +00:00
Christian Stenger
1d894c0f7a AutoTest: Code cosmetics
* 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>
2018-07-20 08:34:48 +00:00
Christian Kandeler
ef37452cfc QbsProjectManager: Fix qbs build against external qbs
Change-Id: Iccc0b340498e363fa6c8df39bd0949f55bddd77a
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2018-07-20 08:26:00 +00:00
Vikas Pachdha
b8da47af9c Android: Log Qt live apk path and few more code paths
Change-Id: Id743db4865b399c619c04fc393540758352c60e1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-07-19 14:47:58 +00:00
Leena Miettinen
ac674bac03 Doc: Describe newly supported Qt Quick Controls 2
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>
2018-07-19 14:00:48 +00:00
Ulf Hermann
957d7d83ff Debugger: Fix breakpoint disabling and enabling in for QML
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>
2018-07-19 13:49:51 +00:00
scootergrisen
9b36fb24ef Update danish (da) translation for Qt Creator 4.7
Change-Id: Ia9e7f40283fe3f257fe288df6a8ca1bb02a68de0
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2018-07-19 13:26:02 +00:00
Vikas Pachdha
6fa2901173 Android: Avoid toolchain check for QML projects
Change-Id: I4d70b696bd5e8ea5460d20f13ba3ac72550e48c3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-07-19 12:37:31 +00:00
Eike Ziller
3ce783b0ea Require GCC 5.3 or later on Linux/MinGW
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>
2018-07-19 09:44:27 +00:00
Orgad Shaneh
7cee991c70 Utils: Remove superfluous qualifications
Change-Id: I36e17dac0cff87f82f0ddaf97bc613389110f218
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-19 08:21:29 +00:00
Tobias Hunger
9f8dbc1d2f Update CMake template for console projects to newer standards
Add version information as well as limit the supported languages to C++.

Change-Id: I7a931139c6eb1a4457a89925fc7497c754184833
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-19 07:45:18 +00:00
Orgad Shaneh
1958c2129e Revert "Windows: Match the name case of included files"
It breaks cross-compilation on linux/mingw.

This reverts commit 1c014ed3d9.

Change-Id: I3e8183ec318541a4393ad242eefbdeaa78b7be44
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-07-19 05:44:06 +00:00
Robert Loehning
8fefe0c591 QmlProfiler: Fix place markers
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>
2018-07-18 15:13:50 +00:00
Eike Ziller
efdf4fcbc4 Version bump to 4.7.1
Change-Id: I428ed0c2643193caec1e6a0f47eff8f55df55ef2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-18 13:54:16 +00:00
Nicolas Ettlin
5b6ab4ced2 Fix the button order in the "Choose Topic" dialog (help plugin)
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>
2018-07-18 13:04:55 +00:00
Tobias Hunger
b6c9879f41 ProjectExplorer: Remove support for .user files pre version 3
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>
2018-07-18 12:26:53 +00:00
Eike Ziller
56cd442693 Merge remote-tracking branch 'origin/4.7'
Change-Id: I441f2b093992fcc7af29541681206bd3175614e3
2018-07-18 12:03:08 +02:00
Orgad Shaneh
afb60d0434 VCS: Use namespace Utils
Change-Id: I41c818362398fd194995baf5b1adb16899e83217
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-07-18 08:44:45 +00:00
Tim Jenssen
dc29aafb52 add IDE_SOURCE_TREE to the doc environment
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>
2018-07-18 07:19:55 +00:00
hjk
e2144db165 Debugger: Pass native gdb.Value to native gdb pretty printers
Task-number: QTCREATORBUG-20770
Change-Id: I6ea92faf0c9314c50da05356fa9004f87124111a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-17 09:10:03 +00:00
Robert Loehning
d49693c22b Clang: Remove invisible string
Change-Id: Ib60badf134e884f1a02abdf791d2516d076eee0e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-07-16 16:00:47 +00:00
Orgad Shaneh
dedbb40f57 Remove copying settings from Nokia directory
Change-Id: I550b62ab74505f72eee5c8daba206f80dd5a3a34
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v4.7.0
2018-07-16 13:13:05 +00:00
Robert Loehning
e1d8489262 AutoTest: Harmonize capitalization of "GTest filter"
Change-Id: If3fe511a26234ac96767f5d7370106aee9b80ca7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-16 11:29:21 +00:00
Ulf Hermann
37bcbf7575 Tracing: Make sure we don't cast between different kinds of events
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>
2018-07-16 10:03:59 +00:00
Ulf Hermann
c73c86e1a3 QmlProfiler: Remove extra file cache
The FileInProjectFinder has its own cache. We don't need to duplicate
it.

Change-Id: I90450ac734953e3747e55cb74505dd48e5f22f6e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-07-16 10:03:42 +00:00
Ulf Hermann
c679b3202a Tracing: Simplify TimelineModel signals
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>
2018-07-16 10:03:30 +00:00
Ulf Hermann
96982d6177 Tracing: Use std::unique_ptr instead of d_ptr for TimelineModel
The d_ptr mechanism has no benefits here and just adds overhead.

Change-Id: I5327bf6fab3b531b892dd85da35f1d07c7ac4c5d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-07-16 10:03:21 +00:00
Alessandro Portale
8d19333075 ProjectExplorer: Modernize
modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
modernize-use-default-member-init
modernize-use-equals-default
modernize-use-transparent-functors

Change-Id: Iebed22caa2e733d292f334e956e3d16b844e14e3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-07-16 10:01:53 +00:00
Ulf Hermann
af8bd12387 QmlProfiler: Don't scan the whole file system in rewriter test
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>
2018-07-16 09:53:06 +00:00
Ulf Hermann
d1d4d0cdcd Qml Profiler: Do toggle extended statistics when option is checked
Task-number: QTCREATORBUG-20778
Change-Id: I3390241c25ab7a87329bc8b20c49c32cf4c02944
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-16 09:41:54 +00:00
Orgad Shaneh
6019f8f40e BinEditor: Fix "Find Next" for a single char
Change-Id: If35807230969d3620a3a9018af8d2c21236cd58d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-16 07:56:05 +00:00
Robert Loehning
fd782687fe BareMetal: Fix default display name
Change-Id: I30b3985ce30cedd4f7cefda95bb5a5bf2e2acc6e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-13 16:30:42 +00:00
Robert Loehning
4d85b6fc7e Android: Fix error messages
Change-Id: Ib7f996d65d5d50b1c7cbea399bccc1c87ba0e9e6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2018-07-13 14:30:43 +00:00
Eike Ziller
4ea3dcd701 Update changelog for 4.7.0
Change-Id: I90aef93f9794393002be830e4279ed28f9a3fcef
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2018-07-13 13:44:07 +00:00
Leena Miettinen
8daca461c2 Doc: Add 3rd-party libraries to Acknowledgements
Reformat parts of the existing text.

Task-number: QTCREATORBUG-20682
Change-Id: I019146d3861fe57258ba0ddc84ed3ed576128da9
Reviewed-by: Xing Xiong
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-13 12:35:45 +00:00
Eike Ziller
2410443237 Merge remote-tracking branch 'origin/4.7'
Change-Id: I143aabee9c64a348f2cadb315f06648e0b7d48af
2018-07-13 14:17:12 +02:00
Robert Loehning
0374549b1e ImageView: Fix brace in string
Change-Id: I08c0b74930cccea4674ea559c64de9fff8cd1791
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2018-07-13 12:06:38 +00:00
Tobias Hunger
a92f39ec35 ProjectExplorer: Make Collapse All action for project tree work
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>
2018-07-13 11:31:18 +00:00
Tobias Hunger
8c6854b421 KitManager: Simplify merging of loaded kits
Change-Id: I7d1a8706ad5e85caadf2d41b56c9c3cc00c5a276
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-07-13 11:16:33 +00:00
Tobias Hunger
e20075f8cf ProjectExplorer: Trigger environment evaluation on current project change
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>
2018-07-13 11:06:28 +00:00
Tobias Hunger
a94fcbd1e7 ProjectTree: Fall back to startupProject as current more often
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>
2018-07-13 11:06:15 +00:00
Tobias Hunger
9452c36025 ProjectExplorer: Simplify BuildConfiguration a bit
Change-Id: Ia44049039c32a598b6da212290d339b8f3705835
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-07-13 11:05:59 +00:00
Alessandro Portale
cd5066d86b QmakeProjectManager: Modernize
modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
modernize-use-equals-default

Change-Id: I7642992eee6838bb2566921de87390c1771ebcbe
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-07-13 09:25:21 +00:00
Robert Loehning
02d46e6c2c SettingsAccessor: Fix placeholder
Change-Id: I3bb6a2646f2c424feb0123ea0aeef07c4c16421a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-13 09:23:04 +00:00
hjk
ef0cf8d1e0 Debugger: Continue startup in case of errors also in localized GDB
Change-Id: I7840e2a398e3ad50cb5526fa2a81584f02beec78
Task-number: QTCREATORBUG-20765
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-13 07:24:24 +00:00
Orgad Shaneh
10fc3595a3 Clang: Suppress class-memaccess warnings for GCC8
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>
2018-07-13 06:21:28 +00:00
Alessandro Portale
1c014ed3d9 Windows: Match the name case of included files
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>
2018-07-12 20:12:30 +00:00
Robert Loehning
69f75036ab Squish: Remove unneeded function call
Change-Id: I3fb85bc69086501dada922b45ef353e34030e0db
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-12 14:31:34 +00:00
Robert Loehning
7e3cdbe548 Squish: Remove unused variables
Change-Id: I24d8ecbe7e7208a20d0f27f62d5b8f488d2a240a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-12 14:31:18 +00:00