Commit Graph

36142 Commits

Author SHA1 Message Date
Eike Ziller
0f05aa42da Help: Fix that context help does not end up with focus
When opening a help url with anchor for context help, the help viewer
would loose focus, breaking behavior like pressing F1 twice to go to
help mode.

Task-number: QTCREATORBUG-9093
Change-Id: Ib6b6ecb4f6bec63f545c1f4ff973d878547f3ee1
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2014-05-30 14:21:48 +02:00
Robert Loehning
7c632f65f7 Beautifier: Fix ArtisticStyleSettings
Done-by: Eike Ziller <eike.ziller@digia.com>
Change-Id: I6dd22f9519d4b14345d27ed2128559efac2cb697
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2014-05-30 13:51:36 +02:00
Robert Loehning
388462d178 CppTools: Fix compilation with MSVC2010
error: C2872: 'Internal' : ambiguous symbol
could be 'CppTools::Internal'
or       'CPlusPlus::Internal'

Change-Id: Iff623400a370b056fb30838e0b97bdc9d6898d00
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2014-05-30 13:50:23 +02:00
hjk
eefaf0c4d0 ProgressManager: Hide some internally used function from .h interface.
The indirection of the "virtual + implementation inheritance" pattern is
kind of subset of the "static" pattern, no need to have both.

Change-Id: I4e2c2742dae94819ee05c7925c02b954a8c6294b
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2014-05-30 13:36:02 +02:00
hjk
f84e5eed74 Utils::BaseTreeView: Adjust column size by mouse click
Single click on either header or unoccupied part of the
view will toggle the respective column width between
a large value based on contents contents width and a
small fixed one (8ex). Previously it only expanded.

Change-Id: I2c5865a3b0bad7593a47976626d4c516e021c157
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2014-05-30 13:35:21 +02:00
hjk
a9e1eef089 Debugger: Limit QObject name dumper to a more-than reasonable maximum
GDB can crash on to big chunks. Since this here is a convenience
feature only, hard-limiting it to length 200 seems ok as work-around.

Task-number: QTCREATORBUG-12330
Change-Id: Ia6ebf16f3528d91020d19851641f42c1e421fe15
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2014-05-30 13:34:25 +02:00
hjk
26b54747e2 RunControl: Make icon(path) a value member
Change-Id: I7f7099d03a25a14d8df02273cca928e9f1fbfe1d
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2014-05-30 13:07:54 +02:00
hjk
fb494b7355 Debugger: Remove unused debuggerstreamops.* files
Change-Id: I11a793f84ae666790715505dc839cd8f678a0728
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-05-30 12:30:20 +02:00
Robert Loehning
0133fbf565 Work around missing default button
Task-number: QTBUG-39334
Change-Id: Ib72e15f51dc86bea4f457375746d3438291eb679
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2014-05-30 12:04:10 +02:00
hjk
a990658573 Debugger: Remove unused variable
Change-Id: I32ff52af80b3424cbe07d43dd16ed84d2359ca92
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-05-30 11:20:53 +02:00
El Mehdi Fekari
d1f2727eb1 Qnx: Add 'Deploy Qt libraries' action to QNX Device options page
Change-Id: I2fac9c5cb74aa46b8422de6ae3a6ab90b4152200
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
2014-05-30 09:48:13 +02:00
Eike Ziller
c5be32fae7 Help: Provide native WebView backend on Mac
Run Qt Creator with environment variable QTC_HELPVIEWER_BACKEND to
* 'native' to get the WebView based one on Mac
* 'textbrowser' to get the QTextBrowser based one

Defaults to use QWebView if QtWebKit is available, or QTextBrowser if
not, like before.

Change-Id: If0660782b18ff3d89301fa7bcaf4e2e2fb69627d
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2014-05-30 09:37:04 +02:00
Nikita Baryshnikov
62a83b2b3f Fix gitignore for non shadow builds
Ignore qbs binaries, tests

Change-Id: Ica9764eb08c0d82d33374057205813746a5a6ecf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2014-05-29 11:32:21 +02:00
Orgad Shaneh
c3b7dc0ac1 C++: Optimize condition
Change-Id: Ifc48b9c89d6399636aed3693a0736ad6d58f0cff
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2014-05-28 16:50:20 +02:00
Orgad Shaneh
87d8202c00 Beautifier: Fix compilation with Qt4
Change-Id: I9e0af6b552c8e7da016fb1a9561a03ffacf1f981
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-05-28 16:02:24 +02:00
Orgad Shaneh
f96b2aaf31 Beautifier: Remove duplicate include
Change-Id: Icb04c0f5b6675e63286aff27acf7ad570d747301
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2014-05-28 15:57:06 +02:00
Erik Verbruggen
a870c29a71 C++: use a global string table for SearchSymbols.
This string table uniques strings, so that multiple identical strings
share their contents. It is used by the locator and the symbol searcher,
and will later be used by the class view.

Change-Id: Ib8b50f69bbf994d0d7a39b66dc8caf1a3d9bfb42
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2014-05-28 15:54:38 +02:00
Sergey Shambir
a940c73d81 ClangCodeModel: fixed build on windows for newer LLVM installs
Latest LLVM release has Windows installer which installs it to Program Files.

Change-Id: I55d7e43d1333f3a7280020e0ebcb1e095acca9d0
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2014-05-28 15:51:51 +02:00
Orgad Shaneh
b84611e199 C++: Enable runtime lookup debug...
... by setting the environment variable QTC_LOOKUPCONTEXT_DEBUG

Change-Id: Ia46f55b2989129d5327d894734b6ea9c77c3e0ac
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2014-05-28 15:46:00 +02:00
hjk
252048ef01 Debugger: Make char * displayable in separate windows
Task-number: QTCREATORBUG-7313
Change-Id: I8d475dd94a48e7a1d5efe4c2c0d90cb6bdf9b3e2
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2014-05-28 15:07:59 +02:00
Adam Strzelecki
8eee847654 Beautifier: Add -assume-filename to clang-format
Otherwise -style=file will be unusable, since clang-format needs to know
original file path in order to resolve .clang-format file location.

Change-Id: I0581cbcdf5770eed98179fe37d5517f648d7b826
Reviewed-by: Lorenz Haas <lykurg@gmail.com>
Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com>
Reviewed-by: David Schulz <david.schulz@digia.com>
2014-05-28 14:27:05 +02:00
Christian Stenger
22d4cdabae Beautifier: Fix compilation
Error introduced with ca433d9b2f.

Change-Id: I4b9604c20dd28b5b8843c0e476cd480d6191f904
Reviewed-by: David Schulz <david.schulz@digia.com>
2014-05-28 14:14:33 +02:00
Nikolai Kosjar
fcfe2d2611 Beautifier: Compile fix
Change-Id: I91d435b3327b906774e68ebd1d36e50be671130b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2014-05-28 14:14:27 +02:00
hjk
6969eb878c Beautifier: Compile fix on Linux
Change-Id: I335e4e0304b3f57eec8e8a85222a900e20ed70ce
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-05-28 14:11:41 +02:00
Erik Verbruggen
e3a416bf4b Make QTC_ASSERT fatal depending on env. var.
When the environment variable QTC_FATAL_ASSERTS is not empty, make
QTC_ASSERT abort (or equivalent) when the condition is not met. The
purpose is to make certain debugging cases easier without having users
apply a change and recompile.

Change-Id: I8350ed27f78dca94db0c9848bd8af4b91cec2222
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-05-28 14:06:10 +02:00
Christian Kandeler
c3285d0ed0 Update qbs submodule.
To the head of the 1.2 branch.

Change-Id: I077f4db839ae74a21895eac8cc470525418ae773
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2014-05-28 13:58:11 +02:00
Lorenz Haas
ca433d9b2f Beautifier: Add new class Command and option to format text via piping
The tool's formatting command is now enclosed in Command. For the
formatting itself it can be defined whether to use a temporary file or
the pipe.
Additionally, settings can return the current tool's version - if
needed.

Change-Id: I0e242c3e8016ed77cad92cc97a19fe3384dda858
Reviewed-by: David Schulz <david.schulz@digia.com>
2014-05-28 13:34:07 +02:00
Orgad Shaneh
af5b3246cf ProjectExplorer: Get rid of LocalApplicationRunConfiguration::RunMode
Change-Id: I132eb2615842ad7fdf6d7fa0f87d8c2c0c77203e
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-05-28 13:22:11 +02:00
Leena Miettinen
536fb92f3b Doc: update menu option name
"Insert New Expression Evaluator" >
"Add New Expression Evaluator"

Change-Id: I176b07b3c197680a22dd6284fbcd9faa4af21a30
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-05-28 12:29:16 +02:00
Eike Ziller
cda31af617 Export ActionContainer.
Change-Id: I075dc07fe5ead7c7303bd1f55e1a9e69a8d25aa7
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-05-28 11:32:52 +02:00
hjk
d2f64b2892 Debugger: Re-group L&E context menu items
Hopefully more logical now and not too confusing for old-timers.

Change-Id: Iee2124d365bf9a05462b7027792e1efc4c273a3f
Reviewed-by: David Schulz <david.schulz@digia.com>
2014-05-28 11:26:39 +02:00
El Mehdi Fekari
fbb22edcbf Qnx: Update display name for the generated QNX kits/toolchains/debuggers
Change-Id: Ie81d930d853c3304493b4b41244726fe98223c45
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
2014-05-28 11:23:48 +02:00
Eike Ziller
665eb73314 More robust saving of output pane button visibility setting.
Explicitly manage visibility state instead of relying on
QWidget::isVisible which might lead to problems at shutdown.

Change-Id: Ic0c2f4e4f83c4241aea2ad28e533f5148cc4606e
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2014-05-28 11:16:24 +02:00
Eike Ziller
7c34567cb2 Merge remote-tracking branch 'origin/3.1' 2014-05-28 11:03:18 +02:00
El Mehdi Fekari
b41edc05a1 Qnx: Update bar-descriptor Qt environment if not matching the Qt bundle mode
If the user removes a bar-descriptor and adds it again, the Qt environments
need to be checked since the default values
are not necessary matching the Qt bundle mode
in the deployment settings.

Change-Id: I9f1e2699322d9868a29596da74e54d4323ea4e37
Reviewed-by: David Kaspar <dkaspar@blackberry.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2014-05-28 10:10:03 +02:00
hjk
2b1ec7952a Debugger: Remove unused functions from DebuggerRunControl
Change-Id: I84a130e526b5b23ab2bf9774586d872f0252b256
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-05-28 10:04:06 +02:00
Orgad Shaneh
1bacbb943f De-noise RunConfigurations
Change-Id: I9def38768c0243358022f56bba80af2080ac8d05
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-05-28 09:38:47 +02:00
Leena Miettinen
9f421172b7 Doc: HTML5 application wizard was removed
Update the screen shot.

Change-Id: I1d34e1613700868203362d0a0e9e9001889444e2
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
2014-05-28 09:27:41 +02:00
Przemyslaw Gorszkowski
fa33294f17 ClassView: improvements of performance for flat tree view
Improved lazy loading mechanism. The main problem here was that
fetchMore function creates children items not only for selected
item but also for children items.
When one changed something in code then whole treeview was rebuilt
(and fetchMore function was called).

Replaced using "contains" and operator[] with 'value'.

Task-number: QTCREATORBUG-8813
Task-number: QTCREATORBUG-8801(partially)
Change-Id: If1ab69a0a67ff828275176ad99c3c63d2a1fa4a2
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2014-05-28 07:19:56 +02:00
hjk
c35ad8c62a Debugger: Fix regression in core file creation.
Introduced with 6dd3be2fee.
The gcore commands accepts files with spaces, but only unquoted.

Change-Id: Iac9a43f4db24252faf4fe4aac5ab0ced3dcb3c3f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2014-05-27 20:24:30 +02:00
hjk
89674e495a Debugger: Remove an unused member of DebuggerRunControlPrivate
Change-Id: Ib294822b5bc24fd327993a092cb0fddc8db66b01
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-05-27 17:34:15 +02:00
hjk
f7c7dc0d52 Debugger: Stop launching when pressing the [x] on the Launching bar
Change-Id: I047652b551c920bd89916de14d202dfccd44ed72
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-05-27 17:29:31 +02:00
Nikolai Kosjar
2e91dd1f3d C++: Fix matching NamedType
NamedType::isEqualTo() wasn't properly moved to Matcher.

In the test case, the function argument matching was failing.

Change-Id: Ia3cb82c11b039ddea61a41d9574f56d43da16ed0
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2014-05-27 16:23:49 +02:00
hjk
d9ba7998c5 Debugger: Fix/simplify selection of Widget to watch with newer GDBs
GDB does return dynamic types nowadays, and some widgets are
not plain QWidgets but subclasses...

Change-Id: If3b7b0f7d639858eeb1e42659a649db22822c20f
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2014-05-27 15:44:21 +02:00
Tobias Hunger
e5bef06d6e Wizards: Use configured extensions for c++ sources and headers
Task-number: QTCREATORBUG-12309
Change-Id: I3d6ebe84408427b5a4e499a6d38ef5f37711610e
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2014-05-27 15:39:38 +02:00
Fawzi Mohamed
e7ac3bf16e ios: fix deploystep displayName updating
still uses the default deploystepconfiguration, which gives some
artifacts (to be fixed later)

Change-Id: I3f4f8a71fbe4e18fc171aee571da72da1c9735db
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2014-05-27 15:37:31 +02:00
Robert Loehning
14976ca142 Squish: Stabilize tst_APTW03
Change-Id: I301c47ca3f09d0f88ceaf7908d35d071c2d73ce5
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2014-05-27 15:08:44 +02:00
hjk
f7a4e44764 Debugger: Merge Locals and Expressions context menus
Task-number: QTCREATORBUG-12310
Change-Id: Id5566021038ef03998103684e41df334baae2d94
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-05-27 14:34:10 +02:00
Erik Verbruggen
76fd01d428 C++: clean up name generation for symbol searching.
This does less calls, and less string concatenations for anonymous
scopes.

Change-Id: Ief07cdcd7daa5710628990abe1486b52a2896d05
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2014-05-27 14:17:25 +02:00
Christian Stenger
da323129f1 Squish: Add another test for Designer
Change-Id: I13d71579cf371b2345b16d932b41d9e8ccae0ee0
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2014-05-27 14:17:08 +02:00