Commit Graph

46854 Commits

Author SHA1 Message Date
Orgad Shaneh
03923fc5a2 CppEditor: Add a failing test for move outside class with template
Task-number: QTCREATORBUG-16649
Change-Id: I29c42c23f4dc44b0401fb07c0dc6d0008dcaf096
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-07-22 06:35:09 +00:00
Orgad Shaneh
44f1d4ff91 GenericHighlighter: Update from latest KTextEditor source
Change-Id: Ic0ede8fce1c1cd1296bdf74f3e8591f138f234ea
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-07-22 02:57:57 +00:00
Orgad Shaneh
449f7d824e GenericHighlighter: Support dsDocumentation
Use doxygen style for that

Change-Id: Ic1f9c557e2bfa21bb9543448a4f12413ff7bff4d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-07-22 02:57:51 +00:00
Tobias Hunger
97d80b2785 Gcc: Cache macros after arguments are cleaned up
Task-number: QTCREATORBUG-16422
Change-Id: I0b8bd7cbaf01be98ff8032dd53208db1a1919ed3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-07-21 15:27:56 +00:00
hjk
39206931f1 Debugger: Mark out of scope variables as such
At least LLDB reports sometimes out of scope variables as such.
Report them as "out of scope" instead of letting the common
struct dumper fail and report its generic "not available".

Change-Id: Ic9d0d196894ef811fab8e6a586bf55d80cd02e45
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-07-21 13:29:57 +00:00
Tobias Hunger
a05332c4d1 SynchronousProcess: Make sure there always is a codec
Task-number: QTCREATORBUG-16628
Change-Id: I037acc37d8e3df88050a3853734c7f4c99e52b6b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-07-21 12:54:21 +00:00
Tobias Hunger
1063ed3a4a SynchronousProcess: Small cleanups
* Use class, not struct, according to coding style

Change-Id: I3aa14eb9f480d7b07fb015b8694aae6fcc60c169
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-07-21 12:53:36 +00:00
hjk
ff6251cbe2 Debugger: Fix handling of extra updates on view visibility changes
Using a lambda in the connect was wrong here, as the m_currentEngine
member may change before the body gets executed. Indirect to a member
slot again, which then can use an up-to-date m_currentEngine.

Change-Id: Ice906a31d2ba0655daffda67ae378acc98aa3698
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-07-21 12:33:42 +00:00
Tim Jenssen
b63f98a592 QmlDesigner: fix warning if colorLogic does not exist
The idea that these spinboxes should be a mashup
with a slider was never completely implented.

Change-Id: I049f0db595fcce0fb59fad550ceb1a4ca2b415bb
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-07-21 12:18:31 +00:00
Alessandro Portale
23168e93ae Flat Light Theme: Improved visibility of progress bar #2
The progress indicator does not have enough on the progress bar
background. This change increases the visibility by making the
background brighter, and conforms the success green with the run green
and error red with the stop red.

Task-number: QTCREATORBUG-16634
Change-Id: Icb1e5744b0ad59e9a11d35e6e8f8048326404cbd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-07-21 10:26:57 +00:00
Alessandro Portale
592dd9ecb7 Flat Light Theme: Improved visibility of progress bar
The progress indicator does not have enough on the progress bar
background. This change increases the visibility by making the
background brighter.

Task-number: QTCREATORBUG-16634
Change-Id: I35562e794e8787b6fa6016ceadafc91ce3906d5a
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-07-21 10:17:17 +00:00
Alessandro Portale
276b20409d Themes: Lighter toolbar borders
The toolbar border/separator lines for flat themes need to be a bit
lighter.

This change introduces StyleHelper::toolBarBorderColor and puts it into
use for drawing all toolbar borders.

Change-Id: Icef20759ce282e768f6ba867474e506b9230b864
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-07-21 10:17:05 +00:00
Tim Jenssen
0a72e887aa QmlDesigner: add missing checkers.png
Change-Id: Ifbf3d13f8e586fcc3cbd284f2c23e99b10401c39
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-07-21 10:12:38 +00:00
Christian Stenger
a769d2f810 Help: Fix compile for Qt5.5
Change-Id: I8b8063043d5a6be2dc8f9ce1e2e9e36646959050
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2016-07-21 08:56:37 +00:00
Tim Jenssen
c25ac73f65 QmlDesigner: reactivate special NavigatorTreeView style
it was a regression when everything switched to fusion style

Change-Id: I87a660afd268ed76608edad8edc93f29db243748
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-07-21 08:39:31 +00:00
Alessandro Portale
484550d785 Flat Light Theme: Improved visibility of navigation ions
The yellow navigation icons on gray background do not have enough
contrast. Yellow is simply too bright.

In fact, Diana specified blue as color for these icons. This change
turns thesem blue.

Task-number: QTCREATORBUG-16634
Change-Id: I4073da893486c11d4c3ba1da0b7ed3346c2bc4fc
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-07-21 08:09:16 +00:00
hjk
8a6d8270d2 Debugger: Do not use non-existent working directories for GDB
Task-number: QTCREATORBUG-16497
Change-Id: Ie219189c3b36524bfacce1efa99862398bc6f6e0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-07-21 06:37:56 +00:00
Eike Ziller
b2d7d62426 Help: Fix that selecting fallback font style was very limited
It could only handle combinations of "Regular", "Bold", "Oblique",
but fonts can have their own sets of fancy style names.
Actually set the selected style name on the font and save that
in the settings.

Task-number: QTCREATORBUG-16620
Change-Id: Ibf8cd6f2ac0d3ff1c0fd100e9db627937c0eb1ec
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-07-21 06:12:29 +00:00
Eike Ziller
8c94419a0b Help: Remove unnecessary QLatin1Strings
Change-Id: Ia5c83d5e2c392873f400f3db396b9c355cdd4192
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-07-21 06:12:22 +00:00
Eike Ziller
c512f5d71f Help options: Fix that font styles and sizes did not adapt to family
Different families can support completely different styles and sizes,
and sizes also depend on the selected style, so these need to be adapted
when changing familiy or style.

Task-number: QTCREATORBUG-16620
Change-Id: I53a2bfb5e867bf7ea66825a9470ff6c9e73b2040
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-07-21 06:12:17 +00:00
Eike Ziller
6e730fd79c Help: Remove reading of fallback settings from 3.4
Change-Id: I1a029f7cdfd067e5b3c180d9aca889a09c5ae2b2
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-07-21 06:12:08 +00:00
Thomas Hartmann
343d72fd3b QmlDesigner.Navigator: Styling fixes
The Fusion style does not play well with the custom background in
our delegate. I simplified the background in our delegate
and removed unrequired .css code.

Change-Id: Ia3872d7df8b8c031b29199794e509933322c1d98
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-07-20 21:07:21 +00:00
Nikita Baryshnikov
9750a82445 Git BranchAddDialog: fix branch renaming
replace invalid characters with '_'. To allow pasting of text with
invalid chars inside

Change-Id: Ibc0d3dde2252235a931b51ad73ae2eef527be547
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2016-07-20 19:48:11 +00:00
Orgad Shaneh
9669a84f61 QmakePM: Disable "Run in terminal" for more test project types
Unit test applications do not typically require any input, and
having their output appear in a tab (which also contains history
etc.) is convenient.

Qt Creator disables "Run in terminal" by default for projects
that have `QT += testlib`.

This change does the same for qml test projects, that have
either `CONFIG += testcase` or `QT += qmltest`.

Task-number: QTCREATORBUG-9475
Change-Id: I6da1b239ff1757be4d280f852e7f3537c44867ee
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-07-20 15:59:14 +00:00
Tim Jenssen
9f7dd3b47f QmlDesigner: show GradientStop value as tool tip
Task-number: QTCREATORBUG-5717
Change-Id: Ib4a775d217f80adab5558de8b8137b9ea9f819f6
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-07-20 15:36:47 +00:00
Tim Jenssen
e7843b3ffe QmlDesigner: fix warning if loader item is null
Change-Id: I4eecbbc9afdf9b9065ff2998a93ee22f331d92c7
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-07-20 14:50:53 +00:00
Tim Jenssen
ae5f1918b4 QmlDesigner: cleanup code
Change-Id: Ia281b8efcacdfb00e724e97b491fbd4250a99fb1
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-07-20 14:40:51 +00:00
Leena Miettinen
3ef66cd753 Doc: Replace "Dynamic Properties" with "Properties"
The label name was changed, but the doc was not fixed.

Change-Id: I585db2824837f1b076133306d3af5276bcdaae28
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-07-20 14:00:26 +00:00
Robert Loehning
9600033abc Squish: Fix long outdated messages
Should have been done with
bef8f58fe8

Change-Id: I25730c97fc77cb560d892738545775d024ce5eeb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-07-20 13:50:55 +00:00
Leena Miettinen
aa566604be QMLJS: Fix punctuation of messages
- Add full stop to the end of messages.
- Use double quotes for emphasis (instead of single quotes).

Change-Id: I5b0bd2cecda115735b67ceaab202c36ca5d81b43
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-07-20 12:06:45 +00:00
Robert Loehning
38c7ce6518 Squish: Expect parameter amd64_x86 for MSVC2015
Change-Id: I7a8e1659ca88dc2aaff5129bf2fcf3e7014fe577
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-07-20 11:11:29 +00:00
Orgad Shaneh
3815affad5 VcsCommand: Fix indentation in lambda
Change-Id: I6b62f10ad754a40027cfe1b5e0f2343b30701b18
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-07-20 10:14:56 +00:00
Orgad Shaneh
b55e06716b Git: Suppress stderr output (for the output pane) on clone
It already appears in the wizard. No need to duplicate.

Change-Id: I74b1f7d9d5be44e95965bf2af3fee9727372995a
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-07-20 09:22:24 +00:00
Orgad Shaneh
fae08f5c7c Utils: Minor cleanup in SynchronousProcess
* Do not reserve QString before replacing it with another
* Do not append \n when there's only stdout

Change-Id: If75eade473949437a4b5fea2ac0153fa2853b3c8
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-07-20 09:22:13 +00:00
Robert Loehning
7a40d31598 Squish: Use example from Qt 5 in tst_QMLS03
Change-Id: I655f6f01bea097c6ea5874814fd1d267c2e85ffa
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-07-20 09:05:03 +00:00
Robert Loehning
853a1b2f63 Squish: Wait for ClangCodeModel and catch error
Change-Id: Ia8c52126209697c1bf48a8fa1e422ec2c8869640
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-07-20 09:04:52 +00:00
Alessandro Portale
a0f1e716c7 Themes: Draw optional toolbar borders
We need a new Theme flag for that. And it will initially only be set for
the flat light theme.

Task-number: QTCREATORBUG-16633
Change-Id: Id723e128364eb6186fe8e28e2087a3698b1bf632
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-07-19 16:42:35 +00:00
Thomas Hartmann
f50f0675eb QmlDesigner: Set QML2_IMPORT_PATH for the fallback puppet
We have to add the path from QLibraryInfo to find the plugins
shipped with Qt Creator.

Task-number: QTCREATORBUG-16609
Change-Id: I6793b989db9581670572490040a399ae0490589e
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-07-19 15:51:58 +00:00
Orgad Shaneh
3b95ad3fa9 Dark style: Several improvements
* Make comments lighter
* Add background to disabled code
* Use the same "Value" for red and green shades in diff.

Change-Id: I075974098d8a88b21864483accabeba38b3b6063
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-07-19 15:24:59 +00:00
Thomas Hartmann
a72c24a0fd QmlDesigner: Cleaning up DocumentWarningWidget
This patch also simplifies DocumentWarningWidget.

Task-number: QTCREATORBUG-16539
Change-Id: I64a715c2a0eaf12a8515a59566e7b22c86ad8928
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-07-19 14:14:46 +00:00
Christian Kandeler
6d4b944683 QbsProjectManager: Fix crash at project closing
The QbsProjectParser was mistakenly made the parent object of the qbs
build job.

Task-number: QTCREATORBUG-16273
Change-Id: I8e0f9736ac9d92c5c1fe3d82430532358b78fee4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-07-19 13:23:51 +00:00
Leena Miettinen
6a52c34055 Beautifier: Use book style capitalization for headings
Also for group box titles.

Change-Id: Ia651d0c486e3aea9a305b4f6d55ff01b5c97cfc3
Reviewed-by: Lorenz Haas <lorenz.haas@histomatics.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-07-19 12:26:51 +00:00
Serhii Moroz
7ce437a026 Todo: Fix crash after user discards open very big file dialog
Change-Id: I25cea3d4926ccb4a067c0e7e8a0725ad942b8e85
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-07-19 12:16:35 +00:00
Alessandro Portale
76196abab8 Flat Dark Theme: Use "Qt Creator Dark" text editor scheme by default
Change-Id: I7a4cbde4488f82b98dc319de660e28666c71964a
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-07-19 10:59:18 +00:00
hjk
6edfb66908 TextEditor: Enable tooltips for textmarks
Adjust bookmark code, add tooltips for clang diagnostics.

Change-Id: I489d499f5431fcb29f27611d4350298acb30baac
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-07-19 10:45:23 +00:00
Nikolai Kosjar
36e12b75e0 ClangStaticAnalyzer: Warn about unsupported version
Change-Id: I4d8471b7d49c8f295d37add5a0c5b8a698e0f9d4
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-07-19 10:38:31 +00:00
Thomas Hartmann
6335fbf842 Qt Creator Dark syntax highlighting schema
This is a new dark theme for syntax highlighting,
that works well with the new dark theme.

Change-Id: I10df9cd2f9925687d30f6f621e252459c30e12f8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-07-19 09:47:34 +00:00
Robert Loehning
a7933e9372 Squish: Use example from Qt 5 in tst_qml_outline
Task-number: QTCREATORBUG-15469
Change-Id: Ib719e31e53f23a51c4971a53eaa870f4833ef748
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-07-19 09:20:44 +00:00
Thomas Hartmann
392693352c QmlDesigner: Do not add slot by default for root node
Task-number: QTCREATORBUG-16476
Change-Id: Ibbf07f9a532c4594a87427b3516485a668a65d38
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-07-19 08:59:58 +00:00
Thomas Hartmann
b6279856ac QmlDesigner: Reseting models if id is changed
The change of an id was not taken into account.

Task-number: QTRD-2182
Change-Id: I8897fdf00d7d741fb26d30e3b71737809b51b4b4
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-07-19 08:59:53 +00:00