Commit Graph

58968 Commits

Author SHA1 Message Date
Leena Miettinen
0a582f279e Doc: Fix link to icon in Qt Quick Designer docs
Instead of the transparency button, the eye-open icon should be clicked
to hide items on the canvas.

Change-Id: Ica44241a1ea129f24f97cdae58355d14bce79d61
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-04-10 12:52:00 +00:00
Ulf Hermann
3b30353e4b Tracing: Update selection range when timeline width changes
The viewTimePerPixel needs to be adapted then.

Change-Id: Ie057c780cc75099f1b9df18c79c5e133411ef8e6
Fixes: QTCREATORBUG-22094
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-10 12:17:05 +00:00
Leena Miettinen
fb1ddb53c8 Doc: Describe Stack context menu commands in Qt Quick Designer
The Raise and Lower buttons were removed from the toolbar, so
describe the respective context-menu commands instead.

Change-Id: Iaa00d0b627674f901978404083762e19bb4fb625
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-04-10 08:21:14 +00:00
Leena Miettinen
761d8af68b Doc: Add a link to supported JavaScript methods from error message docs
Since 4.9, the listed functions are supported in Qt Quick UI forms,
but the message text has not been updated. It is translatable, so
it will be updated in master.

Change-Id: I724ffa72bbd78bf9b8d9b5b5ec2136c2d72859a9
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-04-09 14:23:16 +00:00
Eike Ziller
4bdfaafc42 Work around OpenGL issue in macOS 10.14.4
Looks like any OpenGL usage crashes on GPU switches,
so temporarily turn it off.

Task-number: QTCREATORBUG-22215
Change-Id: I26f370f4d94a00fa56da75a32b3ff485ad771864
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-04-09 13:53:05 +00:00
Eike Ziller
59d3284808 More change log for 4.9.0
Change-Id: Id3dda9811e1dadebc801d7cdfd69dd6a845649ad
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-04-09 13:06:53 +00:00
Leena Miettinen
9d61f64a65 Doc: Update information about using the editor toolbar
- Add section headings
- Describe the context menu for the open file
- Add screen shot of the Text Encoding dialog

Change-Id: Ic2196855321eee6a8f742cd6dc8f8e316b976cdf
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-04-09 12:50:33 +00:00
Alessandro Portale
177aeaaf35 Autotest: Move "sort alphabetically" icon to utils
Make it available for others.

Change-Id: I2f167b82127ea7142b8185f0ec0402f1d054d06c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-09 12:15:22 +00:00
Christian Kandeler
9970861060 ProjectExplorer: Add "Remove All" button to toolchains page
Removes all toolchains that do not come from the SDK.

Change-Id: I2d638209160c8bf84d548cef83bebb85223cc70f
Reviewed-by: hjk <hjk@qt.io>
2019-04-09 11:56:28 +00:00
Christian Kandeler
3969a007c2 ProjectExplorer: Add "Re-detect" button to toolchains page
This allows to take changed detection settings or added/removed
compilers into account without restarting Qt Creator.
It is also the only way to get rid of formerly auto-detected compilers
that would not get detected anymore with the current settings.

Change-Id: I3d8a7659e24fa5d55d1fb17864386cf19d3e2533
Reviewed-by: hjk <hjk@qt.io>
2019-04-09 11:56:07 +00:00
Ulf Hermann
9cd1f4d6d0 PerfProfiler: Update the run actions when creating the tool
There might not be a project and therefore, ProjectExplorer might never
send the updateRunActions() signal.

Fixes: QTCREATORBUG-22256
Change-Id: I2705fb22484b491a7a4985179eb6b5a26a921902
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-09 11:27:04 +00:00
Ulf Hermann
5e7818c48c QmlProfiler: Don't assert on data from invalid model index
When selecting an item that has no equivalent in the statistics view, we
should just clear the statistics view's selection.

Fixes: QTCREATORBUG-22262
Change-Id: Id43a46859ab33285fdfb1beafe7137e1bbb3b362
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-09 11:25:59 +00:00
hjk
810a39c706 Debugger: Prevent crash on destroyed perspective
Change-Id: Id000f1c74c2e614f24df1f50f710e51041fa9c38
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-09 11:16:52 +00:00
Christian Kandeler
6cb2e71c38 ProjectExplorer: Do not set up x64 compilers as x86 toolchains by default
That blows up the toolchain list on Unix systems, and is usually not
what users want. Those who do can opt in.

Fixes: QTCREATORBUG-20044
Change-Id: I6a4ef26ff5f0aaddc660cccf59283c6e8c4bdb64
Reviewed-by: hjk <hjk@qt.io>
2019-04-09 10:39:04 +00:00
Christian Kandeler
712e87c041 Update qbs submodule
To HEAD of 1.13 branch.

Change-Id: I8239e37439398e51a104b730215f3979a9b08fe6
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2019-04-09 09:47:45 +00:00
Leena Miettinen
7d08aa3de0 Doc: Add a note about installing Qt Virtual Keyboard
You can easily just ignore the check box when using a wizard to
create a project, but the main.qml file cannot be opened in the
Form Editor if Qt Virtual Keyboard has not been installed.

Change-Id: I88355efa3ad28e5485a944865a722e31db372071
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-04-09 09:44:28 +00:00
Christian Kandeler
4e45ca0c9d ProjectExplorer: Fix runtime warning in toolchains settings page
We used to get the following when marking a first or second level entry:
    QStackedWidget::setCurrentWidget: widget 0x0 not contained in stack

Change-Id: I2af19bbd767a218171cdaeb5e9bf4a3bf3db15dc
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-04-09 09:41:00 +00:00
hjk
384ca4bdb8 Debugger: Fix "Attach to running process"
Change-Id: I3cef08621c40c87f52e20a229ab5e16f0bfa8bb1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-09 08:28:42 +00:00
Christian Stenger
6f21be2b9a AutoTest: Fix wizard for qbs and cmake
If a kit had no Qt configured the wizard for creating GTest projects
did not work even for build systems that did not need Qt (Qbs/CMake).
Json wizard needs some adaption before fixing this properly, so work
around this issue by specifying a common existing "feature".
Limiting the wizard for that case to desktop devices does no big
harm as the AutoTest plugin is currently limited to desktop anyhow.

Fixes: QTCREATORBUG-22264
Change-Id: I7a26f3cbc44762f7eda356128f6c25ca5cee6707
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-09 08:08:22 +00:00
Leena Miettinen
532c809e86 Doc: Update screenshot to show the correct export item icon
Change-Id: I6545ce2267f4c822249863e22087e5c948936734
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-04-09 07:16:29 +00:00
Leena Miettinen
11d7baf97d Doc: List Animated Image as a QML type supported in Qt Quick Designer
Change-Id: I3eefe1d70200801639112fb961a1c5c9d6fe161d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-04-09 07:16:09 +00:00
Leena Miettinen
aacac48908 Doc: Replace "Qt Quick Controls 2" with "Qt Quick Controls"
- Qt Quick Controls 1 has been removed and most link targets have
  been changed
- Leave some link targets where links would break
- Leave strings that still have the "2" in Qt Creator
- Remove the obsolete dependency (QDoc complained about it)

Change-Id: I05148df3b07b4499f802557252c028b11ca29213
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-04-09 07:15:56 +00:00
Andre Hartmann
abb9fb68e2 AppOutputPane: Fix zoom and settings button order
07645527a3 changed the order of these buttons
from:

	zoomIn, zoomOut, settings

to:

	zoomIn, settings, zoomOut

Restore the old order hereby, which is consistent
with the compile output pane.

Change-Id: Ieaff434b596ce1992b4b454e40083df83fbe54fd
Reviewed-by: hjk <hjk@qt.io>
2019-04-09 06:54:36 +00:00
Marco Bubke
71e6c40cc2 UnitTests: More QString fixes
Change-Id: Id1c60dfa8b3ada2c855f43437a153042cfec9f63
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-04-08 22:15:04 +00:00
Christian Stenger
0abcbac913 Squish: Remove checking KDE paster
The KDE paster has changed again and does no more work and
will be removed completely.

Change-Id: I0eb00076219559ff594671dd6b1c8de5eca22f8b
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2019-04-08 15:57:40 +00:00
Christian Kandeler
51176c92ff Core: Fix qbs build
Amends 07645527a3.

Change-Id: I10889b43518c88b0c72f4df69583fbe43486ecfa
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-08 14:39:29 +00:00
Christian Stenger
a98c8b659a Squish: Adapt to changed object names
Dock widgets now get an ID representing the running
engine number additionally.

Change-Id: I8c9b6c1a2a92fb92e84b49d91ac1d3caeeb42411
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2019-04-08 12:35:02 +00:00
hjk
421e025c35 Beautifier: Reduce indirections
The two-phase initialization of the tools is not needed, as the
second phase is called directly after construction.

Also, the settings objects' lifetime is identical to the tools,
no need to handle that dynamically.

Change-Id: Iedfe8a95d68f9a667ef60ad9a107d0bae142b2cc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-08 12:00:04 +00:00
Christian Kandeler
db4b02167a ProjectExplorer: Sanitize GCC toolchain detection
The versionProbe() and autoDetectToolchains() functions had overlapping
responsibilities and were difficult to understand. They have now been
merged into a single function with a more sensible interface.
Functional improvements:
    - MinGW compilers are no longer misdetected as plain GCC on Linux.
    - Instead of only considering the first hit in PATH plus some
hardcoded locations, we now find all compilers in PATH.

Task-number: QTCREATORBUG-22160
Change-Id: Ide097e25e803d92e01f64d8c6091d21d649d7717
Reviewed-by: hjk <hjk@qt.io>
2019-04-08 09:53:51 +00:00
Christian Kandeler
61b2487032 ProjectExplorer: Make sure the list of auto-detected toolchains is unique
Fixes: QTCREATORBUG-19179
Task-number: QTCREATORBUG-20044
Fixes: QTCREATORBUG-22081
Change-Id: Ic4cb6d891a59c7871519d15d2337e34d163c56c8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-04-08 09:53:18 +00:00
Christian Kandeler
ef9e6fbcd7 Add Qbs support for the QtWidgets application wizard
Change-Id: I7b7b7f0642693900f7ba635414450750380955de
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-04-08 08:01:24 +00:00
Christian Kandeler
c960885733 ProjectExplorer: Use QSortFilterProxyModel for TaskFilterModel
We used our own, hand-rolled filter model implementation for performance
reasons, but benchmarking shows no difference.

Change-Id: I076ffeffbd39b468308d48d23d15a69b966dbc23
Reviewed-by: hjk <hjk@qt.io>
2019-04-08 08:01:03 +00:00
Alessandro Ambrosano
07645527a3 Add output filtering for Application Output pane
Task-number: QTCREATORBUG-16356
Change-Id: Ibf6cca1915ef56c50c01cd3c23e7798453506a05
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-04-08 07:56:36 +00:00
Orgad Shaneh
39ba01da71 Merge remote-tracking branch 'origin/4.9'
Change-Id: I7d1912cd5c4d824fd40d3454c5f1bb796f2c21d8
2019-04-07 23:13:17 +03:00
Orgad Shaneh
a33386e014 Git: Support different reset types in branches view
Change-Id: Idce57062cbb92edd4c26647aabef040ec92b9f3c
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-04-06 17:58:58 +00:00
hjk
5273ef2a8a Debugger: Re-organize dock widget persisting
Looks like the mainwindow cannot be convinced to handle multiple
sets of dockwidgets.

So switch back to a single set containing everything and keep
track of non-default visibility in the perspectives, and persist
these sets.

The following pass:

1.

 Start Creator with new settings
 Goto Debug Mode
 Move Break dock widget to right, switch on Global log widget
 Leave Creator
 Start Creator
 Goto Debug Mode
 Check: Debugger Selected, Break on right, Global log visible

2.

 Start Creator with new settings
 Goto Debug Mode
 Move Break dock widget to right, switch on Global log widget
 Switch to QmlProfiler sub-perspective
 Leave Creator
 Start Creator
 Goto Debug Mode
 Check QmlProfiler selected
 Switch to Debugger sub-perspective
 Check: Debugger Selected, Break on right, Global log visible

3.

 Start Creator with new settings
 Use any C++ test project
 Start debugging / stop at main()  (F10)
 Wait for stop
 Switch to Edit mode
 Switch back to Debug mode
 Check: Only "running" debugger dock widget layout present
  (not the normal + preset at the same time)
 Quit Qt Creator while this debugger is running
 Check: Shuts down without crash

4.
 Use any C++ test project
 Start debugging
 Switch to Debugger Preset perspective
 Start a second debugger
 Kill either instance
 Check: Application dies, Debugger Preset perspective gets displayed
 Switch to perspective of second instance
 Check: Perspective looks ok (docks visible as before)

Task-number: QTCREATORBUG-21083
Task-number: QTCREATORBUG-21669
Task-number: QTCREATORBUG-21668
Task-number: QTCREATORBUG-21813
Task-number: QTCREATORBUG-21851
Task-number: QTCREATORBUG-22110
Task-number: QTCREATORBUG-22169
Task-number: QTCREATORBUG-22189
Change-Id: Ic9eb41ff7699ac0f48a85e68376daa80b2b6847e
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-04-05 15:53:51 +00:00
Ivan Donchevskii
2c5808bada CompilationDatabase: Ask for the root path and scan for headers
Let's use the same approach we have for CMake projects by using
the same TreeScanner class.

Compilation database does not have a concept of the root directory
so let's show a file dialog and ask for it the first time the project
is loaded. Next times we open it we take this path from settings.
This root path can later be changed from the project tree context menu.

Fixes: QTCREATORBUG-22031
Change-Id: I151aed8d0504b2e8aa14aa774cad25f8c86d5c17
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2019-04-05 15:26:19 +00:00
Leena Miettinen
6ee855a2bc Doc: Describe launching KCachegrind from Qt Creator
...for profile data visualization.

Change-Id: I878ab4a3dfff0fc43903e482603a516514e79c10
Reviewed-by: hjk <hjk@qt.io>
2019-04-05 15:18:21 +00:00
hjk
d34eb692fe QmlProject: Do not crash on project creation
Task-number: QTCREATORBUG-22244
Change-Id: I38c6527269ba553c0e4734c437f5a6918da729a3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2019-04-05 15:10:44 +00:00
Leena Miettinen
c9cdd1f83b Doc: Add information about clang-cl
Change-Id: Iffaf7fcc2a47dccba188a04c21d360cb24655137
Reviewed-by: hjk <hjk@qt.io>
2019-04-05 15:03:09 +00:00
hjk
2430168322 ProjectExplorer: Merge StatefulProjectConfiguration into RunConfiguration
It's the only user, and single inheritance for feature reuse is an
antipattern.

Change-Id: I975861d111cec67fb2dbf94e38bd824d18a0c8d0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-05 14:47:43 +00:00
Leena Miettinen
6916329623 Doc: Add note about only B2Qt version 5.9 being supported
Change-Id: I677073b521bc3d7523814eaf562828e523c83e00
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
2019-04-05 10:43:00 +00:00
Christian Kandeler
967e1a877e Update qbs submodule
To HEAD of 1.13 branch.

Change-Id: I9f3c71230bf1db8f88e75bbdb12982c2d937057e
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2019-04-05 09:13:58 +00:00
Aleksei German
4176b17fff QtDesignStudio Gradient Picker Dialog Patch
Patch for Qt versions below 5.12

Change-Id: I7be4c6287a671faf4fda7865e752494cf038318f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-04-05 09:00:40 +00:00
Leena Miettinen
fc106047f2 Doc: Describe removing and restoring debuggers in Kit options
Change-Id: Ie5a9f4ce222f25818118f9388c11590eca0c53c2
Reviewed-by: hjk <hjk@qt.io>
2019-04-05 08:27:50 +00:00
Alessandro Portale
7ef62eb869 Utils: Fix "unreferenced formal parameter" warnings
environment.cpp:438: warning: C4100: 'file2': unreferenced formal
parameter

Change-Id: I6543c1304307826543ef9d8a9eb860df652ae73b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-05 08:26:12 +00:00
Leena Miettinen
903da92051 Doc: Add information about running Qt for Python applications
Change-Id: Ibd9ed61bd1f771c8081f2c2d2fcc492f0a87da11
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
2019-04-05 07:49:57 +00:00
Christian Kandeler
b8e5a609e1 RemoteLinux: Fix upload of directories
When "expanding" directories, we must remove the directory itself from
the list of deployables. This was broken in f4a12d488c.

Fixes: QTCREATORBUG-22210
Change-Id: I0946aa83cb34aaca01520f19e2aaf3414ae2db17
Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-05 07:45:55 +00:00
Eike Ziller
56ca042ddc Mode selector: Suppress change signals when clicking on active mode tab
Change-Id: I027b1a293fb6daafbdd8fee28fa0f477e0be8367
Reviewed-by: hjk <hjk@qt.io>
2019-04-05 07:37:57 +00:00
Eike Ziller
788ef20247 JSON Wizards: Give labels more space even when word-wrapped
QLabel has a horizontal size policy of "Preferred", but if the label is
word-wrapped, the sizeHint is a using a golden ratio for width & height,
but we want the label to grab as much horizontal space as it gets
anyhow.

Change-Id: I6ed049f4f23158014dc04f2d5020b7c2dd4c1980
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-05 07:26:10 +00:00