Commit Graph

45323 Commits

Author SHA1 Message Date
Orgad Shaneh
ffe939271e Utils: Fix SmallString deallocate with clang
Change-Id: I131a5713e886e062d917112f2d2466e3752bed84
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-03-24 08:47:52 +00:00
Nikita Baryshnikov
5f91cb0d68 CppTools: fix metatype registration macro usage
in places where we do not need it

Change-Id: Ibf35f8144da859fffa3e0a7b6bb262284ec2292a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-03-24 08:15:44 +00:00
Nikita Baryshnikov
2cf72a628d TextBrowserHelpViewer: cleanup
removed  loadResource which was left from
96e8f0bb7b.

Change-Id: Ie1b00412104735b5f3e67939c99dc6cd68d85522
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-23 15:37:17 +00:00
hjk
e16b02c680 Debugger: Move kit guessing out of run control creation
It's only used when starting with a -debug command line and
when attaching to a running run control. No need to clutter
the normal codepaths with it.

Change-Id: Ib374c64a7f63fa79e88967573c37a5da1f415d50
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-23 14:19:19 +00:00
hjk
0301a703ec Debugger: Remove unneeded re-init of RunParameters::useTerminal
... and some dead code.

Change-Id: I22fc6f8ecc09c4c3b928d7b7a510e762a54c0f8f
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-23 14:12:01 +00:00
Christian Kandeler
6b2b58477f QbsProjectManager: Turn some errors into warnings when loading projects.
If at all possible, we want to load a project even in the presence of
some problems in project files, so that users can still navigate it even
if it cannot be built successfully.

Change-Id: If938d43b4c02a3e90d3066e0c6820e6b63cc58d0
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-03-23 13:57:01 +00:00
Tim Jenssen
50b1bf629e QmlDesigner: remove unused code
Change-Id: I00bc1b533f065b87a8d1b46e3296f76bf05b85d4
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-03-23 12:13:48 +00:00
Mitch Curtis
8a7349dc6b Add "e" as nmenomic for File > Sessions
This is especially useful if you work on several projects, and
therefore don't use -lastsession. Currently there's a bit of arrow key
navigation involved to get to the Sessions item, so this speeds up
users' workflows.

Change-Id: Ic77741ce88acd6e34cf7d3a253a2b3d6c9b2b514
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-23 11:55:18 +00:00
Mitch Curtis
bbb0de0553 Dark theme: make "changed variable" text color in watch window readable
It was a pure red, which is really hard to read against a dark
background. This patch makes it a pastel red; the same color as error
messages in the application output, which was implemented in f4a9eaf3.

Change-Id: If013c7215d50c3a75d62031ab19874cfb8545cad
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-23 11:55:10 +00:00
hjk
78228d37db Debugger: Reduce scope of scratch data in run control setup
Keep magic guessing to a minimum.

Change-Id: I3474b4406fa047dff468e853bd6fee7c962e065d
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-23 09:35:09 +00:00
Eike Ziller
62cbe69cd2 Clearer separation of flat output pane buttons
Change-Id: Id3072715592d8333cb488561ba1e0d1828de6acf
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-23 09:12:35 +00:00
Alessandro Portale
22a262e8f6 ProjectExplorer: Flat desktop device icon for flat themes
This change flattens the desktop device icon in the mode bar. Only for
themes which set the FlatSideBarIcons flag.

":///DESKTOP///" deduplicates to Constants::DESKTOP_DEVICE_ICON

Change-Id: Ie31d9c501db2a1e36edbfac59abdd22a4d8c6773
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-23 08:57:59 +00:00
hjk
c371166904 Debugger: Fix import of system GDB pretty printer
Task-number: QTCREATORBUG-15923
Change-Id: I9b8d343f39dd34c33eff05c369bbceb7a581c995
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-23 08:56:43 +00:00
David Schulz
5da8ea0432 Editor: Fix assert in color preview.
The event that triggers the hoverhandler can occur on the last position
in a textline. This position is identical to the text length.

Change-Id: Ia73685b69793fc305094db6611c95c3f03e3a8eb
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-23 08:43:22 +00:00
Leena Miettinen
f3fab4423f Doc: using Qt Labs Controls
- Describe the wizard
- Mention Labs Controls besides older Controls

Change-Id: Ib9182c5ebc9c8ee4478018dd5ef29841284eb3de
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-23 08:20:21 +00:00
hjk
f1a6ae83c1 Debugger: Fix creation of task list entries
The debugger validation was operating on wrong language data,
i.e. run unconditionally even on pure Qml projects that doesn't
require an external debugger.

Change-Id: Ic9c96d88f2014d62e8720f1e80134f561fc40bb9
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-23 08:10:59 +00:00
Eike Ziller
ed8b492728 Fix tool tips of output pane buttons
Were not shown anymore. Regression already in 3.6.

Change-Id: Id92a7655423add70864a123e16e4a3d344289612
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-23 07:45:34 +00:00
hjk
bc95eaaa23 Debugger: Don't re-evaluate language choices
Change-Id: Idca373abbca7c381bdb0af9c0db6763285700ed8
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-23 07:24:36 +00:00
Christian Kandeler
e4de466cdd Debugger: Fix typo.
Change-Id: Ie81f9e0fc2ba8eb56019e2b9332298bdb60198a5
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-22 17:24:19 +00:00
Christian Kandeler
fb51c98b8e ImageViewer: Fix qbs build.
Change-Id: I7dd26214f33952a4116f52cd5bb525913e013b78
Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
2016-03-22 16:58:48 +00:00
Orgad Shaneh
05c1d8ef55 Debugger: Provide addresses for formatted pointers
Pointers often don't have an address at all, or have the pointer's
address instaed of the target address.

For example:
int main()
{
  char str[11] = "HelloWorld";
  char *s1 = str; // s1 shows its own address
}

Change-Id: I2436578c073a00a3fec9411ef7ec82ae4e63a8b0
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-22 15:56:54 +00:00
Leena Miettinen
059f4a03e1 Doc: Analyze mode was merged to Debug mode
Remove a screen shot.

Change-Id: I37510534d64ab70fe7966cd2718e50acb9da669e
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-22 15:33:59 +00:00
hjk
e7d0559312 ProjectExplorer: Initialize StandardRunnable::runMode
Change-Id: I762e968b827640a4ad7d8b86edc1531c2558d33e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
v4.0.0-beta1
2016-03-22 14:59:58 +00:00
Christian Stenger
0d73cfb28d Debugger: Fix language/engine detection
Task-number: QTCREATORBUG-15896
Change-Id: I5bc5ed11652932911bdf3b1107998c54353b1268
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-22 13:57:19 +00:00
hjk
903e40a91d Debugger: Fix initialization of StartParameters::useTerminal
Change-Id: I8b03b02323c6c4d9d714a6cc0ebc7ee40c0abf92
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-22 13:56:03 +00:00
Tim Jenssen
3cf5f29719 QmlPuppet: fix Qt 5.5 builds
Change-Id: I520be5d188e637c222ba3e709f072e2881b20db9
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-22 13:15:36 +00:00
David Schulz
202711c770 Debugger: Use the cdb process environment to search for symbol paths.
Change-Id: Ia2cfa060c7c836db13bd1cabbde82c7630e4eb33
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-22 13:15:35 +00:00
Orgad Shaneh
13dea114e2 CMake: Show build progress in compile output
Broken by 578c107a16.

Change-Id: I2427dbc36f70a20a453fc6fd13f29589f07a7fcf
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-03-22 10:42:02 +00:00
Orgad Shaneh
6a76d054a3 Tests: Fix offsets compilation with Qt < 5.7
Use private member access method from:
http://bloglitb.blogspot.com/2011/12/access-to-private-members-
safer.html

Enable boost tests also for Qt 5.7.

Change-Id: I8641a9549a341be49890c5b0d88d2b7e9937abb7
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-22 07:40:58 +00:00
Eike Ziller
ac6a2bd899 Help: Set sensible fallback fonts
The default fallback font was arbitrary. So far this was not a big issue
because it was basically never used.

Set sensible fallback fonts on the different platforms.
Also make sure that we can see in the settings if the default fallback
font has been changed by the user, and also separate the setting for the
different font properties. Since we did not do this before, we now have
to reset the setting for all existing users, so they benefit from the
more sensible default.

Task-number: QTCREATORBUG-15887
Change-Id: I16419f54c300580d5c9a9b19722aacf790ef66fc
GPush-Base: 44820dae13
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
2016-03-21 15:26:18 +00:00
hjk
db3217af36 Debugger: Make QVariant dumper more robust
Change-Id: Ic9ce15eaf88f8a5267c9e8d3f9d049d9b2035eb1
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-21 15:03:03 +00:00
Alessandro Portale
ddde4bdd27 Utils: Improved handling of StyleHelper::baseColor
This change makes sure that the "UI coloring" feature respects the
original brightness of the current theme. It prevents dark themes from
getting a too light recoloring and vice versa.

Extra benefit: this allows to remove much recently introduced code.

Change-Id: Ib2c96e7ed172a4cc97520aa4b5d180cc6353c661
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-21 14:23:23 +00:00
hjk
2baa1f8b77 Bump required Qt version to 5.5
Change-Id: I4f152bde842c20b0dade863ffea118fe32322c5b
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-21 13:44:13 +00:00
Friedemann Kleint
ea0c23771c DocumentManager::setCurrentDesignDocument(): Check m_currentDesignDocument.
Fix a crash occurring when dropping a .js file onto the Widget Designer.

Task-number: QTCREATORBUG-15903
Change-Id: I3e952df1483c5683fa7daa3a1f2fb8ebbbc1b491
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-03-21 12:13:47 +00:00
hjk
a3b2809417 ImageView: Remove hard dependency on QtSvg headers
Change-Id: I2c8aa3017a95b36b3d96687f2da03eb2ef558222
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
2016-03-21 11:42:02 +00:00
Christian Stenger
5cbfe68ae5 ProjectExplorer: Fix compile with Qt less than 5.6
Change-Id: I9b9d1b8d1e6a3ee57085cd13ddcab0a5bb9d8118
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-21 11:21:12 +00:00
hjk
7543588433 Debugger: Make offset test compilable with Qt 5.7
We can't disable C++11 anymore, disable the boost test instead.

Change-Id: I68e39a348b35ce7c37abac633d3ea68526f0ff2d
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-21 10:23:32 +00:00
Friedemann Kleint
44820dae13 ImageViewer: Add option to export images from SVG.
Add a tool button showing a dialog with file name
and size for exporting images from SVG.

[ChangeLog][ImageViewer] Added option to export images from SVG.

Change-Id: I84e04dc166e70b0359eba0f19703a75b882a2bc2
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-21 08:51:52 +00:00
Orgad Shaneh
e5262fba5f Qbs: Remove versions validation from some tests
Qt < 5.4 is not supported for building.

Change-Id: I8b008da5f21dc13c36fea535ea8e468ad252fd5a
Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
2016-03-21 07:07:30 +00:00
Orgad Shaneh
f7bcf2813c Debugger: Save one loop cycle for struct watches
Change-Id: I039dd5f32d4a1e25f1c3a6a7cec78ebdfb3f5e68
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-21 06:40:18 +00:00
Tobias Hunger
2b7f87d212 WorkDirectoryAspect: Small improvements
* Do only enable the reset button when there is something to reset
* Do not print the default directory in red

Task-number: QTCREATORBUG-15644
Change-Id: I05cdd02751dce2c4faeb97358d654251dd9dbfa4
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-18 16:27:09 +00:00
Tobias Hunger
adb3a74de9 Wizards: Fix validation of C++ class names
Task-number: QTCREATORBUG-15647
Change-Id: I265a7dbadb2f87e7e44a1770be2af3eb9b9cb53b
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-18 16:26:43 +00:00
Alessandro Portale
61b772e0e3 WelcomeScreen: little adjustments for default.creatortheme
..by rounding the buttons and adding a theme color role for their background

Change-Id: Icde7bb0be178ffbe65635d336227886ffd902129
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-18 15:40:00 +00:00
Eike Ziller
368a718d3d Add QtWebEngine backed help viewer backend
Supports most features. Defined priority for help viewers:
"qtwebkit" > "qtwebengine" > "textbrowser".

Task-number: QTCREATORBUG-13910
Change-Id: I59b4231ef93fdf9df46436850ed3743b5916f9cd
Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-18 15:32:04 +00:00
Robert Loehning
e7fe1ea41b Squish: Update expected file in tst_git_clone
jom changed

Change-Id: I5d0bebe8a6d4711c98aa38b7db21fdc16d6639b7
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-18 15:30:38 +00:00
David Schulz
1da7c060cb Debugger: Always set the cdb symbolpath.
In newer cdb versions the default symbol path points to the microsoft
symbol server. This can lead to a very long start up time for inferiors
including many modules, because every module is verified against that
symbol server. Unless the user does not explicitly set such a symbol
server in the cdb settings do not use a symbol server.

Change-Id: I0b24e2dd12f6cef98c55f4f57f0c800cecfc3c3f
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-18 14:16:31 +00:00
Eike Ziller
a029aafdf0 Move handling of color dialog that is opened from mode selector
It doesn't really make sense to have that handling deep in the
FancyTabWidget.

Change-Id: If4b4b9b9c3cbc49c25091982b398fb18f9bf87c2
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-18 12:59:36 +00:00
Friedemann Kleint
f393da3451 ImageViewer: Remove class ImageViewerActionHandler.
Create the actions in ImageViewerPlugin and
use lambdas instead of a QSignalMapper.

Change-Id: Ic74622ca5e9daf6f0d367d00b709d732153dc62e
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-18 11:53:13 +00:00
Alessandro Portale
3e040d4c3d Core: Use a constant for the default creator theme
Change-Id: I53ba63cf55fb6918d959b0d396175a3188d62bd9
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-18 11:18:17 +00:00
Alessandro Portale
a0806dedd5 Rename the "Dark Frame" theme to "Default Flat"
Change-Id: I1d2dc8af94466de29fc1429c82dbbd37bcf7310b
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-18 11:18:03 +00:00