Commit Graph

44854 Commits

Author SHA1 Message Date
Alessandro Portale
56142b11e7 ManhattanStyle: Explicit PM_ButtonIconSize of 16
This fixes squeezed icons on some Linux Distros with QStyle
integrations, where a lower value would be set and the icons
be squeezed and become blurry.

Change-Id: I2962dd370491fc741646f52a9794e178a2ff81b1
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-01-04 10:14:05 +00:00
Orgad Shaneh
1e5d6115f0 Clang: Fix GCC 5.3 warnings in unit tests
signed/unsigned comparisons.

Change-Id: I04c7fc82e23736ab07432a09f4063872e4405735
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-01-04 10:07:39 +00:00
hjk
a16dbc2582 Ios: Use plain C++ for IosRunConfigurationWidget
In preparation for the use of ArgumentsAspect. There's not much
in the form anyways.

Change-Id: I5a4c5d508a032a12bcabc2d1d7f35f3d390e43b5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-12-23 10:41:26 +00:00
Alessandro Portale
850141cea0 Utils::Icon: Make the style options flag based
A drop shadow and the "punching of edges" are now independantly
settable.

Change-Id: I48bf88944d0cfce504aef0a1c04979ab2dc4cb9f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-12-23 09:03:53 +00:00
Alessandro Portale
22e8e8886c qtcreatoricons.svg: Removing error/warning/info_big
They have never been used

Change-Id: I38682f5707bd5626a83d9c7e5a59f0fc98ddf037
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2015-12-22 16:16:59 +00:00
Andre Hartmann
9bf7f83845 DiffEditor: Sort includes
Change-Id: If646e27683e351e4308906f58b325dc47ff83c8b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-12-22 11:54:30 +00:00
Andre Hartmann
067682a25e GdbEngine: Fix typo
Change-Id: I333cee6370202ed5e9623025d484a2f5637a05c5
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-12-22 09:38:57 +00:00
Eike Ziller
e29dc8b6e8 EditorManager/Locator: support (<linenumber>) after file names
The style that is used by MSVC.

Task-number: QTCREATORBUG-14724
Change-Id: I2ffffb507a1e404fa30e9c8ea15aa6b11dfc5b32
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-12-22 08:31:55 +00:00
Eike Ziller
4502e70e2f Use regular expression for EditorManager::splitLineAndColumnNumber
Makes it actually easier to understand.

Change-Id: I33c442f501ecdf66077f8785bf8418a6d699f2ee
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-12-22 08:31:44 +00:00
Eike Ziller
28060b1cb0 Add tests for EditorManager::splitLineAndColumnNumber
Change-Id: I02a47360df7f6fc86ac2bd79869896b331e7b6bb
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-12-22 08:31:36 +00:00
Eike Ziller
bfd66bada9 EditorManager: Unifiy "split line number" implementations
We should have a single method that covers all use cases. Also get rid
of output parameters from the function.

Change-Id: I801fbd0d38499f0997d21df99ca75ba40f9f73b6
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-12-22 08:31:26 +00:00
hjk
e0fdeaa624 QmakeProjectManager: Use WorkingDirectoryAspect
Change-Id: Ia0359477bad1d40a2349e782b19600fa19547216
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-22 07:21:22 +00:00
David Schulz
05789c8da1 CdbExt: Fix indices when the predicted number of children...
...differs from the real child count.

Task-number: QTCREATORBUG-15016
Change-Id: Iaadbd6a0de6e1e068b072705e1d1a264ca03a855
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
2015-12-21 14:59:38 +00:00
hjk
64a8732060 QtSupport: Remove unused CustomExecutableRunConfiguration member
Change-Id: I9f5e7af3767d1a92c0e2104ca56bdb9d0b99f33b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-21 11:08:48 +00:00
hjk
1cdbe5cde9 Debugger: Remove unused functions in cdb extension
Change-Id: I96991f8dad6f384d798bd27738176fe7319de797
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-12-21 08:36:14 +00:00
Tobias Hunger
293cc57064 Modeleditor: Use a JSON-based wizard
Use a JSON wizard in favor of implementing the same thing in
code.

Change-Id: I5952bf417255fb75378e42e3e80b13c0a0d3d317
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-21 08:29:47 +00:00
hjk
c2bf384ac2 Debugger: Split DebuggerEncoding enum
... into a string specifying a kind of encoding (utf8, latin1),
an optional bytesize (2-byte integers, 4-byte integers) and a
flag whether the displayed value should get "..." around it.

Scales better than adding an enum value for each new combination.

Change-Id: Iffcb1e2f148f12da96e165559a976bd34026c649
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-12-21 07:32:14 +00:00
Andre Hartmann
74b33929d8 CustomParser: Use QRegularExpression instead of QRegExp
Change-Id: I952f61a30435b26bf5c77f0b219ddc3b17b0c2e4
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-18 19:13:40 +00:00
Friedemann Kleint
8b909fcada Add missing includes.
After qtbase/90e7cc172a7521396bb2d49720ee4ceb9a9390b3, QStringList no
longer includes QDataStream.

This also reverts qtbase/c1be0fbe7d17b67c330c0c90eb9ba8a0536c2121, which
did the same in a worse way.

Change-Id: Ib10622b0da3b3450d29fc65dc5356fde75444a8f
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
(cherry picked from qttools/376501ae5a86859821c0e89b2e8fbc9906d11e07)
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-18 14:47:17 +00:00
Marco Benelli
64d2aab04a Removed qmltypes tooling-related warnings.
QtCreator is not currently handling dependencies written in qmltypes
files, that imports 'QtQuick.tooling 1.2', so it write several warnings
in 'General Messages' for each qmltypes file it reads.
Since dependencies are resolved anyway in the shipped qmltypes, these
warnings are useless and annoying.

Change-Id: Ie209ca4164381990feda12fb4c7a9e332e4a632d
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-12-18 14:01:46 +00:00
hjk
9d18de6110 ProjectExplorer: Avoid updates from the environment
... to the working directory widget if that's not present anymore.

Change-Id: I242d128b0241735dc6cac84290c9cee66a989067
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-18 13:48:42 +00:00
Robert Loehning
1ec2796c9b Debugger: Update tooltip referring to renamed view
Change-Id: I46e8194f20e496f530d19ff06e189754cb225e3d
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-12-18 13:35:50 +00:00
Orgad Shaneh
3f46e3da30 TextEditor: Make TextEditorSettings all static
Move the fading indicator to the widget

Change-Id: I762c46845153c93c75ea0198c993b655559fad3b
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-12-18 12:01:59 +00:00
Orgad Shaneh
0f8a3abb8b TextEditor: Rename slotCodeStyleRemoved and make it private
Change-Id: I70f3ef86faa3c7c4e55bdd524c6a17cdb13c8fc1
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-18 11:54:16 +00:00
Orgad Shaneh
9d3b2f0998 TextEditor: Use Qt5-style connects
The heavy lifting was done by clazy.

Change-Id: I380120e3419d2a3c0e272f51cc3e0d5f6aaa5e9b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-18 11:54:12 +00:00
Orgad Shaneh
b6131e1b1d TextEditor: Fix wrong disconnect signal/slot signature
Change-Id: I583068a0db954fe01edeaf557a22515a6d5c7e94
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-12-18 11:49:49 +00:00
Jarek Kobus
242e98293c Update Polish translations
Change-Id: I2a5fee690db52d3d902881755efadf5795a2b5e9
Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
2015-12-18 10:52:53 +00:00
Tobias Hunger
a2bffbefb3 Add missing override to quieten warning
Change-Id: Ibb14de894ae9e9c3eae367895fb03590ccb061d9
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-18 10:44:17 +00:00
hjk
be4aba7dc2 QmakeProjectManager: Use TerminalAspect
As side-effect, this fixes the automatic update of the terminal options
if the .pro file changes and no manual changes have been made yet.

Change-Id: I5b102b2587a8f2f1b326ecc9f4cec98edad74a16
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-18 08:46:34 +00:00
Jochen Becher
ef9ddf408e ModelEditor: Fix class member parser
Fix parsing of C-style comments, multi-line declarations
and some Qt keywords.

Change-Id: Ifc6121dca47b245385a01eef568b3775e846c566
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-17 20:42:00 +00:00
Jochen Becher
e7ed85aaca ModelEditor: Copy selected elements to clipboard
On Copy (Ctrl+C) the selected elements on a diagram are
copied as an image into the clipboard. If no element is
selected all elements are copied (as it was before).

Change-Id: Ia24e1cae44ea3cc7303198fe7bfd3174c7a970cc
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-17 20:41:49 +00:00
hjk
6a71c63186 Debugger: Make display of QObject names optional
... and switch it off by default. The feature has indeterministic
performance impact and lost quite a bit of its utility since GDB
learned to extract dynamic object types most of the times.

Change-Id: I22cccb03ba67f9ff6ad757bbc06eb372d84bbffe
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-12-17 14:58:23 +00:00
Eike Ziller
91ffe63e1a TextBrowserHelpViewer: Fix opening external links
External links were not opening at all. The logic for that was present
for TextBrowserHelpViewer::setSource, but clicking on links would
directly go through the text browsers loadResource method. Avoid that by
turning off openLinks and handling the anchorClicked signal instead.

Task-number: QTCREATORBUG-15491
Change-Id: I86017f14138b98738221c1aed42c37551feaf671
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
2015-12-17 14:29:53 +00:00
Eike Ziller
55b0136923 TextBrowserHelpViewer: Don't use magic number.
Change-Id: I0902ed925f0dc4c5770fee0f02159cfc31e67b02
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
2015-12-17 14:29:45 +00:00
Eike Ziller
9f8e5dc493 Version bump
Change-Id: Ife40ba930964b56122e4ff03ff8cb6077720edcb
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-12-17 12:32:17 +00:00
hjk
e5b9e819fa CMakeProjectManager: Use WorkingDirectoryAspect
This mimics the relevant parts of QbsProjectManager.

Change-Id: I31257556ce0fcc714f6fac26f9d0b88ca6cb076b
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-12-17 11:16:07 +00:00
hjk
f523f0291f Debugger: Fix editing values in GDB
This fixes a regression introduced in 3.6.0.

Change-Id: Ia87a8a60e43e99db9c214d95b8a89af15ea742fc
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-12-17 09:14:44 +00:00
hjk
beb561b8cc Debugger: Remove unusued WatchData::displayType member
Change-Id: I475c5f6ee90434a6e85342d8bb71bd10a04dd27b
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-12-17 09:14:29 +00:00
Nikolai Kosjar
f25b9cab14 Clang: Fix determining current parameter
...for emphasis in the function signature tooltip when doing function
completion.

Braces, brackets and less/greater were not considered so that arguments
containing initializer lists, lambda captures or templates could lead to
the emphasis of no or the wrong parameter:

  void foo(VariantType t1, VariantType t2);

  void g(int x, int y)
  {
      foo({1,2, // Ops, no parameter emphasized
      foo({1,2}, // Ops, no parameter emphasized

      foo([x, y](){}, // Ops, no parameter emphasized

      foo(Bar<int, // Ops, second parameter emphasized
      foo(Bar<int, int>, // Ops, no parameter emphasized
  }

Change-Id: I2515fcbd892850b608bd90b35dd348ae522144b2
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-12-16 15:38:41 +00:00
Nikolai Kosjar
c0e1b1581b Clang: Fix displaying template parameters II
...in the function call completion tooltip.

Task-number: QTCREATORBUG-15286
Change-Id: Ie24576f98ee4ba8f954de394f3596093323a2c35
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-12-16 15:38:36 +00:00
Nikolai Kosjar
4382274ba4 Clang: Fix emphasizing current parameter in function signature tooltip
...when completing function calls.

Task-number: QTCREATORBUG-15108
Change-Id: If55effe117774f3ec5debb03a9c7889981ea27d2
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-12-16 15:36:47 +00:00
Marco Bubke
18fa35c152 Clang: Fix highlighting for using a namespaced type
using NameSpace::StructInNameSpace;

Task-number: QTCREATORBUG-15271
Change-Id: I17a3ad1e1eed7a820ed7dead5d15a3de760c135f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-12-16 15:28:27 +00:00
Nikolai Kosjar
86f3194cc1 Clang: Add disabled test ArgumentToUserDefinedIndexOperator
It looks like there is no way to mark a test as expected to fail, so
disable it.

Task-number: QTCREATORBUG-15473
Change-Id: Ic6cb2c00a64cf647cb499492064d451d0dd08075
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-12-16 15:21:21 +00:00
hjk
20d22e52df BareMetal: Don't assert in displayNameForId() for unknown ids
This function can be called with arbitrary ids. Follow the pattern
in other device implementations and don't choke.

Change-Id: Ica25f2d24fe673ad025883bf106fc270f27fa4fe
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Reviewed-by: Tim Sander <tim@krieglstein.org>
2015-12-16 15:02:35 +00:00
Lukas Holecek
ecf3eb1d9e FakeVim: Handle Ctrl+[ with Russian keyboard layout
Task-number: QTCREATORBUG-15261
Change-Id: I6b63fdce965347dc883c72223b482883beccbb80
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-12-16 14:54:43 +00:00
Lukas Holecek
a5b85651dd FakeVim: Add checks before handling keyboard input
Some inputs can be unrecognized with some keyboard layouts
(QKeyEvent::key() will return 0).

Change-Id: If7b49330ac00a2493a956331c7bbe8ea2a4305ae
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-12-16 14:54:30 +00:00
hjk
e31de93ba6 QMakeProjectManager: Use ArgumentsAspect
Change-Id: Ia7443193213c0e83551c0a790d5662375265bbef
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-16 14:50:23 +00:00
Nikolai Kosjar
9abfd73204 CppTools/Clang: Remove InMemoryInfo
...nowadays we only need the working copy.

Change-Id: I30924b3c5dc68b428d6c10f6ba015b0640b476d2
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-12-16 13:29:21 +00:00
Nikolai Kosjar
802f9f47e9 Clang: Pass IpcCommunicator directly to ClangEditorDocumentProcessor
Change-Id: I666c56f304522a3edc2a21055df4ef70aecb0e0e
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-12-16 13:29:17 +00:00
Nikolai Kosjar
cbdcd1e4a7 CppTools: Move function to BuiltinEditorDocumentProcessor
It's only needed there.

Change-Id: Id12aa9d0fdf50b3292316426587677f79a09a9e9
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-12-16 13:29:12 +00:00