Commit Graph

52923 Commits

Author SHA1 Message Date
Orgad Shaneh
50e3085f22 Tooltip: Hide when Escape is pressed
Change-Id: Ib516cbbd9b51ddac3dac48668e3341830233af4b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-09-13 06:14:24 +00:00
hjk
ac2012a73a Debugger: De-virtualize *Engine::notify* functions
Most were never re-implemented, so just for debugging purposes
in the mixed engine.

Change-Id: If569e0e553e3fdd5ef83b3bdfdbd22fd0ad5b90f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-09-13 06:12:03 +00:00
Christian Stenger
0e92b085f9 QmlDesigner: Fix qbs build
Change-Id: I6a541a23fc9fde51a8355589c26ecefe1eb71788
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-09-13 06:00:39 +00:00
hjk
001d4c10a7 Debugger: Remove use of setRunParameter() for state auto test
... which are disabled anyway.

Change-Id: Id15de0e5b766373570d89bacf02464e46f5b2b89
Reviewed-by: hjk <hjk@qt.io>
2017-09-12 15:34:23 +00:00
Alessandro Portale
9ad888e6a6 QmlDesigner: Replace redundant images + remove unused files
Replaces some redundant icons files with already available, themeble and
HighDPI-able Utils::Icons. The removed files are mostly images which
haven't been used since a while.

Change-Id: I1c17eb176a0d3d0a80335b43909012eab822c6b1
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-09-12 15:21:02 +00:00
Ivan Donchevskii
96ef6c797b CppEditor: split CppEditor and CppEditorWidget
Change-Id: Id3c815184f7f3bace0276e947f6b6f76e61ec6de
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-09-12 15:05:38 +00:00
Orgad Shaneh
2cc0f27589 Replace -x with -- for gnome-terminal
-x is deprecated.

Change-Id: Ic00b8042caff1620abe3e51f9d3b3198d606f084
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-09-12 14:52:39 +00:00
hjk
c26149dc43 Debugger: Integrate setupEngine() into tool start()
... a step towards abandoning the engine-related bits of
the debugger state machinery. The base RunWorker states
meant for that are good enough now.

Change-Id: I3b269bdeb66f14a956b76e6a7e8258f45b3e59e5
Reviewed-by: hjk <hjk@qt.io>
2017-09-12 14:36:22 +00:00
Ulf Hermann
0f21decf41 QmlProfiler: Correctly handle invalid message types
We might get malformed events from the application. Clamp message and
range types into the allowed enum values when reading and reset the
event data when reading an invalid event.

Change-Id: Id76a3a8b8ed9378f9fb1acf15cf46d20758ca030
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2017-09-12 14:25:23 +00:00
Ulf Hermann
9cdb0ec22e QmlProfiler: Don't trust in externally provided timestamps
We might get timestamps that are outside the trace time, negative
timestamps, ranges that go backwards, and other insane things.

In order to deal with this, we clamp all negative timestamps to 0, and
treat the specified trace time as minimum range, that can be overridden
by events.

Change-Id: Iba661f2a4346077871fc62a46759e169b2aad49d
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2017-09-12 14:25:01 +00:00
Ulf Hermann
8fa07c81f6 QmlProfiler: Accept animations events with 0 animations
There is no reason why we shouldn't. Logically that would be an
animation frame without any running animations. The frame would still
have a frame rate and we can still tell if it's the GUI or render
thread.

Furthermore the assert might be triggered by invalid trace data.

Change-Id: I58578a941c5d1471dd1b299ed5f489ad160b2904
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2017-09-12 14:24:11 +00:00
Ulf Hermann
13910a1176 QmlProfiler: Accept unknown input events
We might get more event types in the future and filtering them is harder
than just displaying them. Also, traces might contain invalid input
events which would trigger the assert.

Change-Id: I9b38422af953ebb65363fc2b7a91facb7f757976
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2017-09-12 14:24:01 +00:00
Tobias Hunger
cacb6b17d0 CMake: Group entries in project configuration
Change-Id: I6aa797f5ff49a5cc33dfbdf0b25dcd78abbff66e
Reviewed-by: hjk <hjk@qt.io>
2017-09-12 12:55:51 +00:00
Robert Loehning
9690337f47 Squish: Update expected tree for tst_cmake_speedcrunch
Needed since 3bb3f4af56
filters out duplicates.

Change-Id: If7e56914feb9d22c1620822fbb363b55b894a41a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-09-12 12:20:10 +00:00
hjk
8e96bc9176 Debugger: Dissolve createEngine
It was a recursive wrapper taking too many arguments to handle
what is at most a two-stage linear process. Making that explicit
is shorter and clearer.

Change-Id: Ibcb3422ff29b36b2b4df174fcffa8af62c254701
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-09-12 11:53:22 +00:00
Tobias Hunger
ff7752eebf ProjectTree: Handle containerNode in ProjectTree::hasNode
This fixes e.g. "Add Existing Files..." triggered on the top-level
node of a project.

Task-number: QTCREATORBUG-18896
Change-Id: I763e9a31edbcfd8ac9a4f8b8b30ef885789ad1a5
Reviewed-by: hjk <hjk@qt.io>
2017-09-12 11:50:29 +00:00
Nikolai Kosjar
bfa07e3ccc VCS: Fix build
Change-Id: Ie18986306317b72558b3c59021bfa921fd2fcd5b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-09-12 10:41:17 +00:00
Tobias Hunger
21ab4c427c VCS: Offer to save-all before commit
Task-number: QTCREATORBUG-3857
Change-Id: I3ff3d90803eec4134b9da4af5567753ad7bffafb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-09-12 10:04:20 +00:00
Christian Stenger
6d0c167ba7 Squish: Update language test
Danish and Ukrainian had been added a while ago, so add them to the
list of languages to check.

Change-Id: I92c507e3a567efa39d7295559af0fb16bbcd1bb6
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2017-09-12 09:53:30 +00:00
Robert Loehning
1e3b5418ea Squish: Update createNewQtQuickUI() and calling code
Change-Id: I117afaabd0baf6074247c55b66d8d302b9dbfd34
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-09-12 09:37:59 +00:00
Tobias Hunger
acf908fc18 GccToolChains: Do not change language based on canonicalPath
Do not change the language of a compiler based on the canonical
path. This breaks ccache and similar things:-)

Change-Id: I790d630ec493d867df45d24f80e8927ba3189476
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-09-12 09:33:18 +00:00
Christian Stenger
1acf748f5f AutoTest: Use StandardRunnable inside TestConfiguration
Replace some members by a single one.
By using the StandardRunnable we automatically get more
information that can be used later (arguments, device).

Change-Id: Id2afb6dffc27d97da568372f6ee13c7181fc393a
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-12 09:17:48 +00:00
hjk
2edbefcb5d QmlDebug: Streamline command line parameter creation
We always have a port now in advance and can construct the
command line directly.

Change-Id: I12dba553f4ef073d7c5b00477baf9fa0e5596bdb
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2017-09-12 09:09:35 +00:00
Alessandro Portale
a31ec6689d Timeline: Remove unused icons
The lock from Utils::Icons is used, instead.

Change-Id: I0f948c9e5b7ade8d2623f4965cf8b7afbf70200b
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2017-09-12 09:08:34 +00:00
David Schulz
75f1dd8b9c Core: check whether the patch tool defined in settings exist
Change-Id: I9b910ddfc9250b1d558bbe56c8cf82da056344ff
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-09-12 07:34:07 +00:00
Eike Ziller
8e3efd92c6 Fix Get Started Now (and other links)
If we do not specify the correct documentation URL including the version
number, QtHelp will look for any documentation that has the given path.
Since we now register Qbs documentation, and that also has a file
"doc/index.html", the Get Started Now button could open the Qbs manual
instead of the Qt Creator one.
Specify the full documentation URL including version number to ensure
that QtHelp opens the right page.

Change-Id: Ia77103fe2763dd208d3b9a279a8301f7f5799c8b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-09-12 07:32:34 +00:00
hjk
f84d44e4e8 Debugger: Merge *Adapter classes into GdbEngine
The main reason for having the adapters (complex target specific state
handling) is mostly gone now, leaving us mainly with the drawbacks
of the solution: An additional indirection, and using a hierarchy
for code sharing. So drop that, and use if/else chains instead
of virtual functions now, and start simplifying the result.

Change-Id: Idcf3a28da103c01cfa80cf9bab8ef51fe879b6d7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-09-12 07:01:59 +00:00
Nikolai Kosjar
f2e5e22009 Clang: Avoid waiting plugin side if (re)parse fails
If a parse or reparse operation fails, the corresponding translation
unit is "not intact" anymore and further job requests for that
translation unit will be silently discarded without notifying the
plugin. This is especially problematic when the plugin expects/waits
(for) a certain message.

A parse/reparse can fail due to e.g. an invalid commandline or an
internal crash.

In such a case, ensure to send some dummy results.

Task-number: QTCREATORBUG-18864
Change-Id: Ida9b8066fd55e64027a9b0d8bd5cf365b16a7356
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-12 06:46:29 +00:00
Vikas Pachdha
991663d13b Android: Fix empty output when sdkmanager command fails
Change-Id: I013f35880acd5683f23de49cb388c5ef9d8fc911
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2017-09-12 06:43:49 +00:00
Claus Steuer
d85e9bbe2f AutoTest: Fix test result output when debugging tests
When executing tests in debug mode the results are not displayed
as usual in the test result pane. In debug mode a newline character
is added to each line before passing it to the outputreader. The regular
expressions used in the GTest- and QtTestOutputReader do not match
because of the newline character.

Change-Id: Ia8051497097c950b5cf2d64cd4de0cb425802c50
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-09-12 05:37:12 +00:00
scootergrisen
43c0d896a2 Update danish (da) translation for Qt Creator 4.4
Change-Id: I83d612efb8cddfb98961901efbf8bc6832b43682
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2017-09-11 18:45:38 +00:00
Serhii Moroz
bb58ab34c1 TextEditor: Add sortSelectedLines action
Change-Id: Ifdc82766bac3cfe2e9c287b4ef04902a943c8f72
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2017-09-11 17:43:02 +00:00
Nikolai Kosjar
4de68511e6 Clang: Output warnings if QIODevice::write() fails
Change-Id: I9588a5081d8adb7b2db7955c4f48a2391e202396
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-11 10:29:56 +00:00
Orgad Shaneh
3b4c6ed5bd PushToGerrit: Fix support for multiple projects on the same remote
Use case: A project has a legacy repo and a new repo. Both are used as
remotes in the same local directory. If the legacy repo's remote name is
less than the current repo (legacy < origin) then only legacy appears.

Change-Id: Ie02cbee3142c4d2628cb51cbcad50cf903a75bb0
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-11 09:49:41 +00:00
hjk
8037d5e02f FakeVim: Properly recognize tabp...tabprevious
Note that this does not fully solve the linked issue as the
triggered GOTOPREVINHISTORY action does not have the same
behavior as :tabprevious

Task-number: QTCREATORBUG-18843
Change-Id: I26a719f77d2c1727bb18da46e13f5a0be48473bc
Reviewed-by: Lukas Holecek <hluk@email.cz>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-09-11 09:03:54 +00:00
Andre Hartmann
201a09b5c5 C++: Fix highlighting of "float" keyword for C files
... in the Classic Code Model.

Broken by 0d1fef41f7

Task-number: QTCREATORBUG-18879
Change-Id: I7d0222cc81e8847827af042e89d3b75c57f5d454
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-09-11 08:59:05 +00:00
Jarek Kobus
b506fce0fe Fix string messages
Found during translating.

Change-Id: I9626b3393d7b53300f7c806acbc5e12bc58574d2
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-09-11 08:29:41 +00:00
hjk
808f192ff8 Qnx: Dissolve a QnxDebugSupport setRunParameter() use
Change-Id: I54cacf6dbcb5f68a2f063e41a86fc6d0c33da900
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-09-11 07:58:28 +00:00
hjk
e44d16e3de Debugger: Remove convenience DebuggerRunTool constructors
Use setRunParameters() for now, and individual setters later.

Change-Id: If7d044ea249b79ce117897a976659e9302bfc544
Reviewed-by: hjk <hjk@qt.io>
2017-09-08 13:53:51 +00:00
hjk
440f2ba028 Debugger: Dissolve a few more setRunParameter() cases
Change-Id: I92d7b75c9a9758ab8c2ad8f9956ebcd8ecc9cb69
Reviewed-by: hjk <hjk@qt.io>
2017-09-08 13:42:18 +00:00
Nikolai Kosjar
bdbd5a788b CppTools: "pre-compiled" -> "precompiled"
Change-Id: Ia4207747a3659fc05013d22b63feb2b17b1dec81
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-09-08 13:41:33 +00:00
Nikolai Kosjar
b4e2ab36a7 Clang: Remember selected function signature hint
...when typing more arguments:

    struct Foo {};
    void f(int, int);
    void f(Foo, Foo);
    void f(char, char);

    void c()
    {
        f( // 1. Trigger completion with Ctrl+Space
           // 2. Chose item "f(Foo, Foo)"
           // 3. Type: Foo(),
           // OK, signature hint "f(Foo, Foo)" is displayed again
    }

FunctionHintProposalWidget and IFunctionHintProposalModel are
instantiated for each calculation, so remember the selected hint in the
CodeAssist. Keep the latest 20 entries.

Task-number: QTCREATORBUG-11688
Change-Id: I579fc6d8a35dd8fa398e4b3170ddc05a85252d1a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-08 13:29:20 +00:00
Nikolai Kosjar
0ff2c036ac TextEditor: Remove unneeded code
There is no need to trigger the automatic proposal timer anymore. This
was added to fix QTCREATORBUG-6052.

The removed code resulted in 3 completion requests when triggering a
function call: foo(. One is sufficient.

Change-Id: I3da6574bddaaaa101145ea607483e83620110c5f
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-08 12:24:41 +00:00
Ulf Hermann
76b897d208 QmlDebug: Drop unimplemented private method
Change-Id: I66a2212e6d2eb2208444ca97c64b10ac50c57c43
Reviewed-by: hjk <hjk@qt.io>
2017-09-08 12:21:42 +00:00
hjk
fa214f1a82 Qnx: Fix compilation
Change-Id: I1fe5e7cb99c8b52319588489ef506a0d9e13874a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-09-08 12:20:53 +00:00
hjk
2a29ca9af5 ProjectExplorer: Re-add SUBPROJECT_OPEN_LOCATIONS_CONTEXT_MENU
It was only accidentally unused.

Change-Id: I41702ae2840260af1c131c7454e00ea5e1abee57
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2017-09-08 12:18:44 +00:00
Robert Loehning
40e90cb8be Squish: Update expected combo box in tst_WELP01
Change-Id: I35f40a637a6914bea2057b951409b21b7ce90c8d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-09-08 11:47:26 +00:00
Tobias Hunger
3bb3f4af56 CMake: Filter out CMake input files that are already listed
Filter out CMake input files that are already listed elsewhere in the
project tree. This is server-mode only.

Change-Id: Ib62cd5b521a51180d12d76ec2868a99dbdecc272
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-08 11:18:58 +00:00
Tobias Hunger
91f36271e2 CMake: Check build dir first, then source dir in server mode
The build dir might be contained in the source directory, but not
the other way around. So this should be more reliable.

Change-Id: I2459b249fcc1002aa7f7787231b5699444a4c6bd
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-08 11:18:24 +00:00
Tobias Hunger
bcad4a1b94 CMake: Add header icon to <Headers> folder
Change-Id: Ibb5a61ab100dbd3b32de385df230dd0862faf670
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-08 11:18:17 +00:00