Commit Graph

61529 Commits

Author SHA1 Message Date
hjk
6e3c039f9e Autotools: Use new step widget update logic more intensively
Change-Id: I4dbd1c331152a408b6d7a60a4cbc793995153364
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-25 13:35:52 +00:00
Orgad Shaneh
d97e677be4 VCS: Do not use monospace font in output window
Change-Id: Id022a55152880a999c6c6c81ca88f70abfa88b8b
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-06-25 13:24:04 +00:00
hjk
1d2a15e143 Android: Remove unneeded declarations
Change-Id: I186bd2b35b5c247639b2bb50f65f81499795f31c
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2019-06-25 12:41:27 +00:00
hjk
cc10788d60 ProjectExplorer: Start centralizing BuildStepWidget update logic
... and use the autotool configure step as guinea pig.

Change-Id: I0bbc9fee70b3c8626eb0dec0f728e8368f860484
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-25 12:38:03 +00:00
Cristian Adam
e65aeb5b12 LanguageServerProtocol: Fix compilation warnings
Remove export macro from inline functions.

Change-Id: Ifd3cedb88e8da1b043c81f99624556843671aab3
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-25 12:35:25 +00:00
Nikolai Kosjar
e9e8852f50 CppTools: Handle not only "-std=X" but also "--std=X"
Fixes: QTCREATORBUG-22444
Change-Id: Iedb0b17a26724d0cc8233a3bad273f3e6bd7462d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-25 12:29:07 +00:00
Leena Miettinen
77f1a5963d Project Explorer: Fix UI text
Use book-style capitalization for dialog and button labels.

Change-Id: I2c074d83d6a95ad348daacabd561c758e0a493f8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-25 11:58:23 +00:00
Ville Nummela
63e4180242 ProjectExplorer: Add special handling for removing files
... from a project which are pulled in via wildcards.
Such files cannot be removed from a project file, because they are
not listed verbatim. This kind of failure should not be reported to the
user if the file is also deleted, as the file list will have the correct
state after the next reparse.

Fixes: QTCREATORBUG-22586
Done-with: Christian Kandeler <christian.kandeler@qt.io>
Change-Id: I3dc66fe9a6594be7d0b86f46d830cd099ee49fd7
Reviewed-by: hjk <hjk@qt.io>
2019-06-25 11:53:58 +00:00
hjk
90ad2797eb ProjectExplorer: Add a 'readOnly' property to BaseStringAspect
Change-Id: I1aafcdc2d7b179a627060539cb7fbb9207c4f8ea
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-25 11:51:55 +00:00
Leena Miettinen
73f3291c6d qmake Project Manager: Fix UI text
Change-Id: I6048c952ca36d953d7667676435440615d756c45
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-25 11:37:02 +00:00
Leena Miettinen
07ba637433 Remote Linux: Use double quotes for emphasis in UI text
Change-Id: I2195cfe93d3ca77e8ba4d33f73164680ec17c066
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-25 11:36:40 +00:00
Christian Kandeler
1d589c259b ProjectExplorer: Remove dedicated "DuplicateFile" ability
Duplication works for any file node whose parent project node can add
files. No need to duplicate (!) this logic everywhere.
This makes the "Duplicate File" action available for cmake, qbs, etc.

Change-Id: Id1f0378c3b3d7e2dbca4d6bbcca5df1c2d33ee0b
Reviewed-by: hjk <hjk@qt.io>
2019-06-25 11:29:40 +00:00
Christian Kandeler
485a97d984 ProjectExplorer: Let user choose the name of the file copy
...created via "Duplicate File".

Fixes: QTCREATORBUG-20534
Change-Id: I32a32eb1fb7e88cffe36efe0f805921b15c24df3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2019-06-25 11:28:39 +00:00
Robert Loehning
d1d7a488d9 Squish: Update GuiAppWizardDialog
Change-Id: Icdcab66e4d3a231286607a32ba8ce66d47741442
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-25 10:48:21 +00:00
Robert Loehning
939d3fe035 Squish: Update message box "changed on disk"
Change-Id: I53149a67e3072a0466ccbb80c55bf9f76b33cb2a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-25 10:47:39 +00:00
Nikolai Kosjar
83bf414c85 ClangTools: Hint to "Build the project before starting" option
...if the analysis ends with errors.

Task-number: QTCREATORBUG-22382
Change-Id: I59f99947e80f7f4d0e2cac4df2e00f68e385ee01
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-25 08:16:47 +00:00
Christian Stenger
e6ede1d997 AutoTest: Limit condition for test execution to Linux
gcc and clang are handling builtin include paths differently.
On Linux the default should be gcc - which works fine even
if boost is installed in /usr/local.
On macOS clang is default which does have the correct builtin
include paths only for Qbs but we are testing on qmake as well.
So, expect the BOOST_INCLUDE_DIR set on macOS if we want to
have this test executed.

Change-Id: Ib9ad697b59bfad5413ad984c9b969ec8b174ae9a
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-25 07:46:50 +00:00
Christian Stenger
d1c226d70b LanguageClient: Fix file path filter handling
Avoid sending files to a language server without a file path,
like temporary generated files.
Only allow this if the file matches the MIME type of the
language server.

Change-Id: Ibf71a7196c387a2c8bf345db24c0005ba8fbdfb1
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-25 07:46:36 +00:00
Christian Stenger
64e842759b Unittest: Silence most of the warnings on Windows
There are lots of warnings coming from including
or linking against LLVM which cannot be influenced
directly. Silence most of the warnings to be able
to work with the mess.

Change-Id: I2c4adec14945ada878bb1e6fda2f06e6d56007e2
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-25 07:36:47 +00:00
hjk
4e5b7345f2 Qnx: Check for presence of "mkdir" on the device
Change-Id: I9fc00a43cc143c8b9f2105ab74466e4c6c57d5a2
Task-number: QTCREATORBUG-22591
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-25 07:26:02 +00:00
Nikolai Kosjar
b52789bce0 ClangTools: Make building before starting analysis default
...when switching to "Custom Settings" in Menu: Analyze > "Clang Tidy
and Clazy...".

Otherwise we might run into parse errors due not yet generated source
files (e.g. "fatal error: 'ui_mainwindow.h' file not found").

Task-number: QTCREATORBUG-22382
Change-Id: I6f499fa8f8ab2fff08d19165e474d14305cfded5
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-25 07:18:50 +00:00
Thomas Hartmann
241c352723 QmlDesigner: Allow adding of fonts
This adds ResourceHandler for tff and otf files to the resource browser.

Change-Id: I8fc757162266d79d656ee58bd0f948107d58db4d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-25 07:14:43 +00:00
Thomas Hartmann
5be6e84016 QmlDesigner: List all fonts in project
We iterate all over all ttf and otf files that are found
unter the project directory and show their name in the FontComboBox.

Task-number: QDS-100
Change-Id: I45c4d512783d5ecc4a646860c08e6088bd712798
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-25 07:14:29 +00:00
Leena Miettinen
ea76ca45e4 Language Client: Fix UI text capitalization
Change-Id: I6871bb6f91b6a7dfd8b0a12973e709193d6a8a99
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-25 06:50:27 +00:00
Leena Miettinen
26d618024c Clang Code Model: Fix product name capitalization in UI text
Change-Id: I81d7e411d47e64d5304f30ca295c3f4b1f0d51b5
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-06-25 06:50:02 +00:00
Christian Stenger
d54d1c34b8 Debugger: Set tab title when attaching to started application
This amends 75b501be9d.

Change-Id: I186b276b82ac5793c58be9d37c36c9d49dda1edd
Reviewed-by: hjk <hjk@qt.io>
2019-06-25 05:37:13 +00:00
Robert Loehning
eab4e056bc Small fixes in French translation
Change-Id: I86816eb8e1d0f7b439532b9196aa28a8119e5234
Fixes: QTCREATORBUG-22613
Reviewed-by: Jocelyn Turcotte <turcotte.j@gmail.com>
2019-06-24 15:54:10 +00:00
Robert Loehning
d27f7c675e ProjectExplorer: Make varsBatCombos Squish-testable again
Change-Id: I4656800f80022652f9277029c597754c9263bf66
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-24 15:47:28 +00:00
Christian Kandeler
41ade463da Output panes: Support keyboard shortcuts for zooming
Fixes: QTCREATORBUG-22567
Change-Id: I3c7419c7b464c329d8f8dae11db9a0b01e51f32c
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-06-24 14:14:07 +00:00
hjk
3170601b4d ProjectExplorer: Prefer ProcessParameters::setCommandLine
... over setting command and args individually.

Change-Id: Iec7c8d3a0b05fb8fa0639f7ddbe7ccdc7387d2a2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-24 13:47:05 +00:00
Leena Miettinen
864e3ab44a Doc: Describe creating and running Boost UTF tests
Task-number: QTCREATORBUG-21169
Change-Id: I5e90d2cd089dbfac2a49a33c69ba0fa2ac43438b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-24 13:45:05 +00:00
hjk
0d49c2cd2c Debugger: Use Utils::TreeModel as base for StackHandler
Change-Id: I3fcc1b3a149f15cf414a1560d91145b623e40c63
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-24 12:54:23 +00:00
Christian Kandeler
517cb44bb0 qmake: Let evaluateFunction() return error for infinite recursion
Otherwise, it can happen that parsing goes on forever in cumulative
mode.

Task-number: QTCREATORBUG-17656
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
(cherry-picked from qtbase/feb06decfe5355a14c982f7ddb427a262ad2b393)

Change-Id: If69f2265ac7eee0d230bd77a9aa9500e97ebeff6
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2019-06-24 11:49:23 +00:00
David Schulz
6dde7767ce Highlighter: Use file pattern matching if mime type is 'text/plain'
Do not try to match 'text/plain' mime types against highlight
definitions, because it is automatically set if the file contains just
printable characters in the first bytes, in this case file pattern
matching gives better results.

Fixes: QTCREATORBUG-22540
Change-Id: Ifd662cd6961011f5cf5d9232ce5f17d2314b4824
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-06-24 08:21:44 +00:00
David Schulz
3717ca9574 ensure the 'Auto' key is set while registering post mortem debugger
The 'Auto' indicates that the the registered post mortem debugger is
directly started after an unhandled user exception. If the value is
unset or set to '0' in rescent windows versions the debugger selection
dialog is not shown. Set this value to '1 ' to show the qtcdebugger
dialog, which also has an option to show the system dialog, if the user
does not want to debug the exception with Qt Creator.

Change-Id: I3160315060dbfb37bec5eaa677c4208900f574a4
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-24 08:15:35 +00:00
Christian Stenger
33fde35c19 Valgrind: Fix compile on Windows
Change-Id: Ic986f43a48cf63c42f8b8825360034c930c5c3a5
Reviewed-by: hjk <hjk@qt.io>
2019-06-24 08:10:39 +00:00
Christian Kandeler
7ceadd4c3f ProjectExplorer: Respect pinned documents
...when closing the files of a project.
Also remove unused member IDocumentPrivate::pinned.
Amends fe21a7a77e.

Change-Id: I15fa06bcde2022c559c4bd7234625c5ea06ba26e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-06-21 14:05:17 +00:00
Thomas Hartmann
a540216549 QmlJS: Add "Array" to global functions
This fixes a false positive error message.

Task-number: QTCREATORBUG-22599
Change-Id: I54104857982873baaa092ad936586c3d245ce720
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-21 13:34:10 +00:00
Eike Ziller
f4acc2f162 CMake build: Allow branding
Create your own QtCreatorIDEBranding.cmake somewhere and point cmake to
it via CMAKE_MODULE_PATH

Task-number: QTCREATORBUG-22488
Change-Id: Ic1057d879c5104b57e4ed8ef8a9c4fc8d4140de9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-06-21 13:30:04 +00:00
Eike Ziller
a47975b8fa CMake build: Do not write versions etc into the cache
The user is not supposed to change these via configuration.
If they are written to the cache, version bumps do not take effect
automatically, resulting in quite some hassle.

Change-Id: Ibaf9dba02114da1cbc3ec2210ae7c3328f35bb1f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-06-21 13:29:56 +00:00
hjk
d57e052768 Qnx: Do not deploy files that are not needed
Task-number: QTCREATORBUG-20000
Change-Id: Ie9a2341a3bcd1531bc83b54bf43466df1347627c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-21 12:29:03 +00:00
Leena Miettinen
acf301fa13 Doc: Add information about new CMake features
Change-Id: Iae561d5d13dc45e83432b0515679702b6b4737e1
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-06-21 12:15:39 +00:00
Christian Kandeler
2a9996e916 Update qbs submodule
To HEAD of 1.14 branch.

Change-Id: I662bab89006041b54a9d467a4aa40b4035732ece
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2019-06-21 12:05:37 +00:00
Christian Kandeler
7c572287a7 ProjectExplorer: Respect pinned documents
... in "Close All Projects and Editors".
Amends fe21a7a77e.

Change-Id: I162753e08f97cf4538bf58e5f48fd222cdb9ee2b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-06-21 12:05:11 +00:00
Nikolai Kosjar
8ae890c067 CppEditor: Check model index in ParseContextModel::data
Task-number: QTCREATORBUG-22596
Change-Id: I6babbab8fc9c66ca6d16fe60d93bfbc9147ead90
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-21 11:23:46 +00:00
Eike Ziller
cc6257e995 Merge remote-tracking branch 'origin/4.10'
Change-Id: I3a5e37d8d9ac0f29c39500607d703ad039408729
2019-06-21 12:46:41 +02:00
David Schulz
a106b56577 Core: Do not access outdated QTextBlock
Fixes: QTCREATORBUG-22547
Change-Id: Iddcf2a9b4d4e864f6038f3955b945a942e351081
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-21 10:46:22 +00:00
Thomas Hartmann
55556bdfd1 WelcomePlugin: Close slpash screen after 15 seconds
Some window managers on Linux have issues with the spash screen
and it cannot be closed.

Change-Id: I20d1f3365f671b67b0c50950cf739430aa58086d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-21 10:37:23 +00:00
hjk
1396c6e8e9 ProjectExplorer: Use Utils::FileName for Runnable::executable
Change-Id: I584bc18aa19a4c9886af7b13e95052dfd4350b34
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-21 10:32:31 +00:00
Tobias Hunger
18eb0b39c5 CMake: Do not treat "Source Files" source file group special
The idea was to make the project tree a bit simpler by removing the
auto-generated "Source Files" group that CMake adds. But this left out
"Header Files", which is also auto-generated by CMake and might
surprise users.

So let's remove this special case again.

Change-Id: If87bf9f89e1ff0be855c2e9b915d64d77d51d2be
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-06-21 09:37:36 +00:00