Commit Graph

45338 Commits

Author SHA1 Message Date
hjk
4babde7d85 Debugger: Merge DEBUGGER_EXPORT and ANALYZERBASE_EXPORT
Change-Id: Ia6af3e8aa11d7661e9d48adc4e7821badbb2db56
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
2016-02-25 14:39:31 +00:00
hjk
c15a2afc49 Debugger: Some less verbose member initialization
Change-Id: I9e565d758ac490cc9ccb984e4d4e1ca809fb5a09
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-25 14:29:08 +00:00
Nikolai Kosjar
b2397b6b4f Clang: Ignore certain warnings in header files
We already had this workarounded, but it got lost in the refactorings.

Task-number: QTCREATORBUG-12067
Change-Id: Ie01f9d41f25d17d1b595204748634bc87ef44378
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-02-25 13:31:15 +00:00
Jesus Fernandez
817f12fddd Changed Close button to text to &Close
The close button in reload prompt message box had no keyboard shortcut.
The text was changed to &Close to add the shortcut. This behavior is
useful after a long QtCreator session and several Qt intermediate files
open. When those files are regenerated it's useful to close them.

Change-Id: I25a9134eeed3ce6f10a5b698c7eda9f714f3bae5
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-02-25 13:23:20 +00:00
Eike Ziller
5750b735b9 EditorManager: Rename "restored" to "suspended" documents
For documents that were "restored" from a session, without actually
opening them.
The new naming differentiates them from documents that were "restored"
from auto-save files, and also fits better if we later "suspend"
documents that have not been visible for a while.

Change-Id: I7727344299eb2b395fc94cd1ab401ceb489111aa
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-02-25 13:22:40 +00:00
Christian Stenger
ed7fee4ccb Tests: Fix compile
Introduced with aaf05f5acd.

Change-Id: I74707cf0af0dd8058536acdee19750583193ed8b
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-02-25 12:42:23 +00:00
hjk
aaf05f5acd Move analyzerbase to debugger
This is the first mechanical step to execute on the 'shared pool of
debugger/analyzer views' idea.

Future steps would be providing infrastructure for the view pool,
making all analyzer/debugger views use the pool and then re-extract
a sensible base for a 'analyzer-and/or-debugger' tool plugin interface.

Change-Id: I1bb392e6dd3084fc56937956bee1d6fd9530335d
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-25 12:31:06 +00:00
Tobias Hunger
b4a2a20da7 Utils: Add a way to trigger the HeaderViewStretcher
Change-Id: I4fd3179015ba325d8e739357d393aff6ce23072f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-25 12:05:58 +00:00
Eike Ziller
29fadd610b Merge remote-tracking branch 'origin/4.0'
Change-Id: Ieead754209dd535687870469a49c2371ecfa00de
2016-02-25 12:01:02 +01:00
Eike Ziller
40e7e2cc6e Merge remote-tracking branch 'origin/master' into 4.0
Change-Id: If8d27122d8015700da6684538d01958e9dd2da80
2016-02-25 11:58:44 +01:00
Eike Ziller
08457143f8 runAsync: Fix build issue with MSVC2015
MSVC2015 has a bug that reference_wrappers have a call operator even if
the wrapped object isn't callable.

Change-Id: I02d96712418f55470034098caab5a61f687194ac
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
2016-02-25 10:51:25 +00:00
Robert Loehning
edadd6cad5 Squish: Remove unused object
Change-Id: I65021379b27803ea1d38f554348b24e210fb0c8b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-25 10:31:28 +00:00
Marco Bubke
c3a1355c34 UnitTests: Search for the google test in sibling directories too
Change-Id: I7f9c82e7f4a38a422b1df272f874c3525dfacd32
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-25 09:40:30 +00:00
Marco Bubke
fc4af46bca Utils: Remove operator[]
Because the operator is always accessing data which has a branch is can be
much slower than iterators. SmallString is optimized for performance so
it would be quite misleading to have a non performing access operator.

Change-Id: Id882c3c12508afa393ce0766bbb680690a193c95
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-25 09:40:05 +00:00
Marco Bubke
6315bd5de2 Utils: Rename hasAllocated in isReference
HasAllocated it misleading because it means that it has read only
references too. Maybe isPointing would be good too but so it is more
orthogonal to isReadOnlyReference.

Change-Id: I79aaa271aa302de2500c2ea81614e433d76f74ec
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-25 09:39:57 +00:00
Marco Bubke
e562af2c29 Utils: Rename isReference to isReadOnlyReference
There is implicit knowledge that the reference is read only in the code
so we should honor that and make is explicit.

Change-Id: I0d6eab6595ae1414ad2607760a2e02fd49bafd72
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-25 09:39:51 +00:00
Marco Bubke
d1b3259246 Utils: Fix memory layout of small string
Change-Id: Ia0509cc922b3807ffc31c278e634bab0f67d2c4d
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-25 09:39:44 +00:00
Robert Loehning
ca4548001d Improve German translation
Change-Id: I46e0c7f3b047d55db1fa2abe54c701c208de50ba
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-24 18:51:53 +00:00
Nikolai Kosjar
32842e754d CppTools: Reduce calls to mime database.
...by removing the unneeded ProjectFileAdder. Its job is already done
earlier, so use the results.

Change-Id: Ifd865e6203ed6162a0d852c2128fb6d30208a52b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-02-24 17:30:34 +00:00
Jochen Becher
bbba9ccae3 ModelEditor: Export diagram as image, pdf or svg
Change-Id: I19be1de5f0c8414b4d76dbbbb68e71183b7ce08e
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-24 17:22:38 +00:00
Lorenz Haas
e4f9d21d28 Beautifier: Fix format for clang-format's command line style parameter
clang-format uses YAML for its configuration file. Thus the content has
to be properly reformated when used in a single line as command line
argument.

Task-number: QTCREATORBUG-15604
Change-Id: I867caf7ccb1f2f396677e2d0cd5335e5255e03ea
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-02-24 17:16:07 +00:00
Alexandru Croitor
357e7ee965 Debugger: Fix switching between threads not updating stack pane.
Task-number: QTCREATORBUG-15587
Change-Id: I41b2025e26d79ca0acf12d8d6468786f5dd121b2
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-02-24 16:32:17 +00:00
Christian Kandeler
537125155d QbsProjectManager: Reduce calls to mime database.
Qbs already has some definite information about file types.

Change-Id: I024feeae3e6df5ec5462924ffedc7332e585f6b7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-02-24 16:21:16 +00:00
hjk
d9660c8479 Use C++11 unconditionally for qbs build of auto tests
... and valgrind fake tool.

Change-Id: I36d4e696ab0f37067eca639cb79613879d0fc990
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-02-24 16:17:49 +00:00
Christian Kandeler
af16e87608 Update qbs submodule.
To HEAD of 1.4 branch. Should have happened as part of latest merge, but
did not for unknown reasons.

Change-Id: I2a999c8689166bb946a4fef94e30b16d7df8b887
Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
2016-02-24 16:07:53 +00:00
hjk
fd1573c909 QmlDesigner: Compile fix for namespaced Qt
Change-Id: Icabee53c56e25d8681664a4c40c99df0abdc2555
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-02-24 15:51:26 +00:00
Robert Loehning
ed1f8b9d1f Squish: Update tst_simple_analyze
Change-Id: Ifba9af5446fec3daa42aa9794a26d02e23b8459d
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-02-24 14:05:08 +00:00
Orgad Shaneh
80082e585c Debugger: Make executable path chooser wider
For the executable to be readable.

Change-Id: Iada62dd5c99b642f8f4938182f2c5e0b2141d34c
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-02-24 13:04:21 +00:00
Niels Weber
15878d7f15 Minor doc improvement
Change-Id: I4899d4ed34bf1132f688390010640f226ace1264
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2016-02-24 12:14:51 +00:00
David Schulz
9aa51d4857 Editor: Fix whitespace cleaning.
Task-number: QTCREATORBUG-7994
Change-Id: I6c197ccc3a148555018e8f8184d116c88d7ea400
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-24 12:03:12 +00:00
Robert Loehning
bc921b46a2 QmlDesigner: Explain frequent mistake in test project
Task-number: QTCREATORBUG-15772
Change-Id: I0910d0fce3f93c72febf15b4590c36768146b972
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-02-24 11:25:24 +00:00
Thomas Hartmann
bf9777e7c6 Fix Clang warnings
Do not hide virtual done() slot with done() signal.

Change-Id: Ic09439fdac2727f316f4a0983ffbd290f8555292
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-24 11:25:01 +00:00
Tim Jenssen
d3c44bd319 fix warning on windows
warning was:
"flamegraphview.cpp(95) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)"

Change-Id: Iea483e75719a8ba8d227faa4c866aca757cd6886
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-24 10:39:55 +00:00
Robert Loehning
54e553ac9b Tests: Add test for "using" keyword
Change-Id: I7c1563a69fe6f135a15eb86c1bcfe6b8050de193
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-02-24 10:29:25 +00:00
Alessandro Portale
7591fc715c Git: Remove unneeded painter state save/restore
The QPainter::drawPixmap call does not modify the painter state.

Change-Id: I1cbae43e6531c9e3d2ae2d3cd1c2d77ce23c4c52
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-24 10:27:56 +00:00
Eike Ziller
a3c0f0f66a MapReduce refactoring and improvements
- QThread instead of std::thread for better integration with Qt
- Use thread pool for recycling threads
- Map and reduce functions are handled like any function passed
  to runAsync, so they either report results through the
  QFutureInterface, or through the return value.
- Automatically deduce the reduce result type

Change-Id: I7a31370c21f8c27b378cd87c3d5974b162449ce1
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-24 10:17:57 +00:00
Alessandro Portale
36a61a9483 Git: Fix selection painting artifact in rebase dialog
avoid overlapping columns

Task-number: QTCREATORBUG-15770
Change-Id: I68862df8e8da0e850dc54f304279966188801029
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-24 10:09:11 +00:00
Alessandro Portale
034285d0d2 QtSupport: add "Qt.labs.controls" feature
And return 1.0 for Qt 5.6

Change-Id: Ie3e25484e20e04798e4f1277d584cbab35f31b47
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-24 09:48:30 +00:00
Thomas Hartmann
6f0787e55e QmlDesigner: AddSignalHandlerDialog should be modal
Change-Id: I8ca6e748e590f4c2e46641d3998722b47e0847dd
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-02-24 09:20:26 +00:00
Thomas Hartmann
4a94b3411a QmlDesigner: Signals of the form item are not prefixed
We cannot prefix the signals of the root item with the id.

Change-Id: I2be656492ae1eb1eef6fcf60821990a04aad985a
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-24 09:17:50 +00:00
Thomas Hartmann
a9cf2dec8c QmlDesigner: Hide private signals
Hide private signals starting with "__" (convention)
and avoid duplicates.

Change-Id: If044cfc1e495a895515bae1baff430f0f91917fd
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-24 09:17:44 +00:00
Thomas Hartmann
6bb916c451 QmlDesigner: Add alias export to node
Change-Id: Ifa7ae959f6aa4622549e5c32a5df14893124c1b6
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-24 09:17:36 +00:00
Thomas Hartmann
3243d1406a QmlDesigner: Adding alias export related functions to QmlObjectNode
Both function are useful also outside of the navigator.

* void ensureAliasExport();
* bool isAliasExported() const;

Change-Id: I46331cae01573e990b5d1a03095c2903dbc95665
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-24 09:17:30 +00:00
Thomas Hartmann
624e63a137 QmlDesigner: Improving gotoImplementation
The designer will now jump to an existing signal handler.
If no signal handler does exist a dialog that allows to
add a new one is opened.

Task-number: QTCREATORBUG-14815
Change-Id: Iefdbec0aa8c2aeca95a0eb4c6b24d84adc357654
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-24 09:17:18 +00:00
Thomas Hartmann
371a80bdfa QmlDesigner: Adding AddSignalHandlerDialog
This is a dialog that lets the user choose a possible signal handler.

Change-Id: I22192edf130a96b3b9ffd69346f4df60f4870a69
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-02-24 09:16:50 +00:00
Thomas Hartmann
8810d9d050 QmlDesigner: Adding FindImplementation visitor
This patch implements a visitor that looks for signal handlers.
We specify a file, a type name and an id.

The visitor is checking for signal handlers like this:

filename.qml:

TypeName {
  id.onAnySignal: {}
}

Change-Id: I35c7dd840c7c7298d393bf131c50b206b2f2544c
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-24 09:13:03 +00:00
Eike Ziller
74cdce071f Merge remote-tracking branch 'origin/3.6'
Conflicts:
	src/shared/qbs
	tests/manual/proparser/main.cpp

Change-Id: I13654bf10c14eb6b1d6805fe86b67ac73b2e4d75
2016-02-24 10:08:37 +01:00
Orgad Shaneh
eaffeb081e Utils: Filter by prefix in HistoryCompleter
It's hard to find entries in long lists when they're not filtered.

Change-Id: I4172b7f4d8d99c61f2e48232f655bf4ffbae34fd
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-24 07:52:56 +00:00
Dmytro Poplavskiy
51edace421 Fixed segfault in SshKeyExchange due to using object after deletion
m_dhKey pointer has been used for debug output just after
resetting it to nullptr.

Change-Id: I1aa4e16b19c7a16738b7734423277cf7eecd8054
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-02-24 00:38:24 +00:00
Christian Stenger
466bf485b0 TextEditor: Fix compile on OSX
Change-Id: I0ed48bc18489a59b0205f56a89b84e9e21fe29ca
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-02-23 13:41:54 +00:00