Commit Graph

53197 Commits

Author SHA1 Message Date
Marco Bubke
a279b55415 Utils: Fix missing initialization in SmallString
Change-Id: I9f8d7aee15c1908f89c6208390cc46d737789144
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-02 11:50:00 +00:00
Tobias Hunger
93c832a621 Project: Get rid of *EnabledChanged signals on Project and Target
Change-Id: I87529e4eed73fedf34a1482c99129ecc3a5c0e98
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-02 11:20:43 +00:00
Tobias Hunger
f119eec4d1 Project: Get rid of builddirectoryChanged signal
Get rid of Project::buildDirectoryChanged signal as well as
Target::buildDirectoryChanged (and the infrastructure).

Change-Id: Ia749e62eec7e182e558d81115dc2a3d07b72b346
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-02 11:20:37 +00:00
Tim Jenssen
4a40a18c05 fix qbs build
Change-Id: I99628c9a47fb4dfd13a18351499d42c1a488031d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-08-02 11:19:45 +00:00
Tobias Hunger
e52ebbf217 ProjectExplorer: Add subscribeSignal method to targets and projects
Add a subscribeSignal method to targets and projects that will make
sure all signals of all project configurations added during the lifetime
of the project/target will get connected (if the type matches).

Use this to connect to some signal in all BuildConfigurations of
a project and get rid of code that keeps connecting to the current
build configuration.

Use Project::buildEnvironmentChanged as an example and convert its
usages.

Change-Id: I689bcebac4b191bf3f8a18765bf18eaac371c5fe
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-02 11:19:28 +00:00
Tobias Hunger
34456aa906 ProjectExplorer: Add ProjectConfiguration * to activeProjectConfigurationChanged
Add ProjectConfiguration * to activeProjectConfigurationChanged signal on
Projects and Targets.

Change-Id: I56f71e034eacaaa043b19c7fd5d82e6c5ea58517
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-02 11:18:59 +00:00
Tobias Hunger
ef2f2804a1 ProjectConfiguration: Add isActive() method
Returns true if the ProjectConfiguration element is currently active
and false otherwise.

Just a convenience method.

Change-Id: If75809ae7e78149d264deaaf6adc4ca8a8be43c2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-02 11:18:52 +00:00
Jochen Becher
90e40f932d ModelEditor: Implement dragging end of custom relations
Change-Id: I38dff44cecd21d32393dfac76d581138dbb6a589
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-08-02 11:13:58 +00:00
Jochen Becher
4c469e0111 ModelEditor: Introduce swimlanes
Change-Id: I9ac9c51eabc00c6912fd47fbf51b50b2938846ae
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-08-02 11:13:38 +00:00
Leena Miettinen
2a80ee8d63 Doc: Update information about XML-based wizard templates
The example wizard templates have been removed. None of the
remaining XML-based wizards use generator scripts (and those
are not recommended for new projects), so information about
genereator scripts was removed.

Change-Id: Ie84fad6a5acb39e9718358bd0b14a5caca454201
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-08-02 10:47:01 +00:00
Orgad Shaneh
c562dce322 Abi: Support Atmel AVR architecture
Change-Id: Ib2c894311d7318a9226ca2ac40001c4f96606f6e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-08-02 10:39:30 +00:00
Leena Miettinen
6cb2d8d355 Doc: Update screenshots of new project and file wizards
The wizard list now shows bigger icons.

Change-Id: I2ec842a915016dddef8ff20de7f70979bb5f1991
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-08-02 06:53:48 +00:00
Christian Stenger
4ad12a2b60 Squish: Add some hints for the setup on macOS
Change-Id: I7aaaee9f32b22f632bdd80c2bcfb1f0cc19f1c8d
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2017-08-02 06:42:33 +00:00
Orgad Shaneh
6907cd350b Utils: Fix compilation with clang
persistentsettings.cpp:435:23: error: default initialization of an object
of const type 'const Utils::Context' without a user-provided default
constructor
        const Context ctx;
                      ^

Change-Id: Ifd034d93c438bd1cd11c18e965417bf6ac24264b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-08-02 05:41:33 +00:00
Marco Bubke
2fed425cd3 Clang: Cleanup string interface of sqlite
We only will need the utf8 optimized SmallString for the indexer database.
So we remove all other string bindings, QByteArray and QVariant.

Change-Id: I4a77901a80b26bf292fc85df535c2ccf3a8ab52f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-01 13:44:50 +00:00
Marco Bubke
1727e64349 Utils: Use string view instead of a string
This is preventing unneeded mallocs.

Change-Id: Ia1f9b1be90635e7aa8b4b6f6e6705e5671f946c5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-01 12:40:33 +00:00
Marco Bubke
daa3aad651 Utils: Add startWith to string view
We will add more function if they are needed.

Change-Id: Iac6b432327be32a0778a82c23ed2de5996c555a1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-01 12:40:28 +00:00
Marco Bubke
19e0159661 Utils: Improve string vector for string view usage
Some times it makes sense to have a Utils::StringViewVector instead
of a Utils::SmallStringVector because you don't want to hold the ownership.

Change-Id: I5ae39efe21aebbf82d4b3effa9e67eae6727ba8b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-01 12:40:22 +00:00
Marco Bubke
3b46c09520 Utils: Add isEmpty to string view
Change-Id: Ib7e77602dcdcdf481f6ab690bacef53c5dd92580
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-01 12:40:14 +00:00
Marco Bubke
01e1f13bb9 Utils: Add + operator to SmallString
It should not be used for chained concatenation. Use initializer list
instead.

auto text = in + 'x';

auto text = Utils::SmallString{in, "x", other, ", "};

Change-Id: I453d986913eae89fd5e1f525b9f4e0c4bd089467
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-01 12:40:08 +00:00
Marco Bubke
1b14ec5056 Utils: Add number to string conversion
We use std::to_string except for integer where we want a low overhead
solution.

Change-Id: I16ce7d575d83ff56e61a5038aa7f9a1febfaf34f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-08-01 12:40:02 +00:00
Orgad Shaneh
e2e109c862 Debugger: Work around race when running from command line
If the project was not parsed yet while the debugger is invoked,
activeRunConfiguration is still null, so the debugger doesn't start.

Task-number: QTCREATORBUG-18551
Change-Id: I02d77fa8fb1b2a3673da5cbf28ea36156498918c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-08-01 11:33:37 +00:00
Tobias Hunger
45046f7071 ProjectNodes: Do not derive Project Nodes from QObject
That should save some memory per node, and since creator has a lot of nodes
(e.g. opening the LLVM project adds about 1 000 000 nodes) this should be
noticeable:-)

Calling update inside ProjectTree::currentNode() and rename it to
findCurrentNode() to make sure it is an still existing pointer.
Also, try to reduce the somehow more expensive currentNode() calls
and sprinkle some const around that usage.

Change-Id: I6a7c5db01a71d53d39544d3013cad557d5b96cdc
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-08-01 11:24:53 +00:00
Leena Miettinen
6fccc45a92 Debugger: Fix UI text to follow the guidelines
Change-Id: I7afa680c15f9dacfa8b0a17c16c442211d4fc7ce
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-08-01 11:15:04 +00:00
Christian Stenger
9618e6b19e Utils: Fix compile for Qt5.6
Change-Id: I5785aad7bea80229bcac35e3b1aa9aa69d9f90e5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-08-01 10:54:24 +00:00
Tobias Hunger
bbb54cdeba MiniProjectTargetSelector: Use generic reporting of project configuration changes
Change-Id: I55a852db08ee5700acb7530769166b19fb12a670
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-01 10:21:25 +00:00
Tobias Hunger
5021a882e7 ProjectExplorer: Simplify *ConfigurationModels
Do not duplicate the code three times!

Change-Id: Ia2d7656242ae8270f51cd787f1261ff1aa135967
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-08-01 10:21:10 +00:00
Orgad Shaneh
2e15bfdc18 PersistentSettings: Minor cleanup
* Use member initialization
* Remove break after return

Change-Id: If3f97fde05717ec3e2134489f24f6b64a75b4a1e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-08-01 10:17:18 +00:00
Christian Stenger
b7c8818eb9 Squish: Update expected texts
Change-Id: I0959635cdfe92335c0a5582119e145c8e7ea88b2
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2017-08-01 09:33:54 +00:00
Robert Loehning
d93f17466a Squish: Update expected completions
Change-Id: I0df3f777cb04e0609be01f5f0acf8b909f64ebd3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-08-01 09:06:54 +00:00
Orgad Shaneh
c35f09db04 Debugger: Replace accelerator for Registers from R to I
Alt+R is used by default for "Play Last Macro", we use it for "Run Without
Deployment". Having it as an accelerator means that this shortcut can't be
used in Debug mode.

Change-Id: Ied1288e9bfe7d41dd6f82249f3cece79dac37df1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-08-01 08:52:27 +00:00
Nikolai Kosjar
8bf50e719a Clang: Adapt failing ClangCodeCompletionTest::testCompleteGlobals
This should have been adapt in

    commit 33a2288c7d
    Clang: Fix extra space before left paren

Change-Id: I68fe7cbbdcb9432a7dce6aede00a3190cce1cd4d
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-08-01 06:50:35 +00:00
Andre Hartmann
e75f595873 SearchResultWidget: Disable replace button if replace text is unchanged
To avoid unneeded file rename operations when the "Rename x files"
checkbox is checked.

Change-Id: I3fc8b1607979bdfcdd7a3f2d3cf172350f7ca758
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-08-01 06:26:35 +00:00
Tobias Hunger
f1d735b7dd Target/Project: Add generic signals for changes in the project configuration tree
Change-Id: Iae0589620a8caf8e3748589b12329608ef3a39da
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-07-31 18:13:35 +00:00
Tobias Hunger
d7aa095670 ProjectExplorer: WS only fix
Change-Id: I201ce909a0159e84f27fbdaa46cabf5f3f2d2bde
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-31 18:12:14 +00:00
Nikolai Kosjar
941af98716 QbsProjectManager: Make version and profile selectable/copyable
...in the qbs settings dialog.

Change-Id: I5c0de7b10fe156d3c29fc17a9ed3963f61a06f7d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-07-31 15:04:26 +00:00
Robert Loehning
11abd8edf7 Squish: Replace Qt4 SDK by self-built Qt 4.8.7
Change-Id: If990367afb01aae94755930c02c81ae82b23bb8f
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-07-31 14:04:00 +00:00
Leena Miettinen
4af7792ad3 Doc: Describe Android run settings
Users can apply Android Activity manager (am) start options
and run shell commands before and after starting applications
on Android devices.

Change-Id: I9ffcfce8a26b8e7d965a1a2327eeedf38bf81a31
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2017-07-31 13:30:56 +00:00
Tim Jenssen
afbfcf8d70 ProjectConfiguration: Add project() member
Change-Id: I0a7170c1721a9e5bcf18af1bab8158af71c64454
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-31 13:20:48 +00:00
Tim Jenssen
e8c57c98d6 ProjectTree: keep lastFocusedProjectTreeWidget to get currentNode
Also remove currentNode checks from updateFromDocumentManager()
We already checked for focus in the update() method.

Change-Id: Id1bc28ce442b5b56597a675516ceea4fbc1801de
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-31 12:31:16 +00:00
Tim Jenssen
73c7cb19cf ProjectTree: remove indirections and rename methods
Change-Id: Ia529bd7c199af2943f6c3da7d25352619da5a7f8
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-31 12:14:44 +00:00
Tim Jenssen
77aa5b180d ProjectTree: remove not used invalidCurrentNode argument
Change-Id: I31f5c5e8218620b469e568d22a9fa00c49f151ad
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-31 12:14:34 +00:00
Marco Bubke
ebd675013f Clang: Fix highlightingmark test
Change-Id: I2c25e06e29e9024e8d3c38536e0e1f93ef65b7e8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-07-31 12:04:05 +00:00
Vikas Pachdha
319a52cc3e Android: Fix SDK tool's version displayed in the error
Task-number: QTCREATORBUG-18655
Change-Id: Iaee5118a74b4e83903af50d03e72c8bd6fa4a8b4
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-07-31 11:45:51 +00:00
Leena Miettinen
5a3da74422 SCXML editor: Fix capitalization of UI text
Change-Id: I2a67d63495f665d8a9e365bf420957b1def4d1e0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2017-07-31 11:32:27 +00:00
Robert Loehning
583361af55 ProjectExplorer: Initialize member
Change-Id: I3b8642e555272eedc72b42c489523697d578a924
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-31 11:20:46 +00:00
Christian Stenger
04db8e3a91 ProjectExplorer: Avoid possible nullptr access
Change-Id: I1a1ce6a8eb958aaedbce215d4be9cbbde92699ce
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-31 09:57:44 +00:00
Orgad Shaneh
6334632f00 DiffEditor: Jump to original file on Enter
Task-number: QTCREATORBUG-18650
Change-Id: Id6bfb9892aee2e4d7b7772b7dd208107ec4b3b11
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-31 08:43:05 +00:00
Leena Miettinen
c650b547db Doc: Describe managing simulators
Users can now view a list of available simulators in iOS
preferences and add copies of them.

Add screenshots.

Change-Id: I24cbd9c4fda437528ff179c37246d909bbc8e11b
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2017-07-31 07:06:37 +00:00
Leena Miettinen
661818a67e iOS: Add punctuation to end of messages
Change-Id: I744843de0f728edcdaa10024b13454b5d673464a
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2017-07-31 07:05:01 +00:00