Otherwise '\n' would be represented as U+2029 in clipboard, which is
useless.
Some of the cursor.selectedText() calls could be replaced with
QPlainTextEdit::copy(), which is backed by createMimeDataFromSelection(),
but there's a slight behavior difference such as EmacsKeysPlugin::copy()
does clear the selection. So I think it's better to consistently use the
lower-layer function.
Change-Id: Ida06b0c250774d80fb729224fd9492a35ea59b7d
Reviewed-by: David Schulz <david.schulz@qt.io>
Do not crash when a CMake < 3.7 (no server-mode and no file-api) is
used.
Change-Id: I72a4ce6bb81d4fcf3d59508c72e46f422a8a00c0
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Find files with the same base name and offer the user to remove these as
well, like we already do for the renaming action.
Fixes: QTCREATORBUG-23869
Change-Id: Ibaa068e6e4d21b884e14c4ad1e95ec14b6e5e036
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
... with the same base file name. We want to re-use this functionality
in a follow-up patch.
Change-Id: Ia9b5b3f003406c7451d59801c49679d9575d1222
Reviewed-by: hjk <hjk@qt.io>
We now have a "Projects mode" and "Projects view",
but "Build & Run" options category.
Change-Id: I5bf1829cb3f9bd47bbbf06c5898e3efd417cb796
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Rewrite information about the Qt Quick Editor to take new
workspace concept and 3D editor into account.
Task-number: QTCREATORBUG-23364
Change-Id: I053685b5e603ad75af3f7314c30e627fac5c6207
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
To get a few things out-of-line in itestframework.h.
Change-Id: Iae6f702b789c98b17a4d255008736377030e3b6c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Makes the line edit disabled and read-only in that case.
We also need to change the custom context menu from the line edit to the
path chooser itself, because disabled widgets do not show a context
menu, but we still want to see the select & copy, and the special
items for opening explorer or terminal.
Task-number: QTCREATORBUG-23798
Change-Id: Ib653b4eaaedfbe54c614377795ddc52d21ac12c0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
In the shell PWD can be different from the "real" working directory,
because the latter never contains symbolic links (getcwd).
E.g. Clang uses PWD as the basis for debug information.
Fixes: QTCREATORBUG-23788
Change-Id: I19f06dcfded5ccca2dc0162a3a543cdc756bffb0
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
FlowDecision can have multiple targets. No reason to delete existing ones.
Change-Id: Ifdc42234c132ce5e0e212e1b3803a7ddcc25c27d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
For each created items we retrieve a list of the names
of all existing states.
Task-number: QDS-1978
Change-Id: I8e85e439fce3c6204cb8bcf69f6be847cc8dae5c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
FlowDecision and FlowWildcard can now be connected.
Change-Id: Iee7f38a23ba2c12d2843996eca46ff31f66af5a4
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
QmlFlowTargetNode allows to abstract different types
of transition targets.
Change-Id: I222992389a00237d3f51026f8b0fc8ab82da5028
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Add PaddingSection for Column, Row, Flow and Grid positioner in
PropertyEditor.
Task-number: QDS-1501
Change-Id: Icd7b6ed2ab371e3a821e725668ca0c9c63d1c1c9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
The timeline uses two GraphicsViews on the same scene.
To avoid glitches the styles have to match exactly.
Task-number: QDS-1977
Change-Id: Iac31e1773425feb2e2a63cdb5ff16ae266addc92
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Adds a missing emit of workspaceListChanged when cloning a workspace in
the workspace manager. It will fix a missing update of the workspace
ComboBox in the toolbar.
Change-Id: Ic2eb3fe516841ba13456c7d94fe699518988ff7a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This has to be blocked only for the root item.
Task-number: QDS-1979
Change-Id: Ia05255468623fe715e3f7172e2f058a70629b783
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
If a component cannot be created we have to show a proper
error message.
Task-number: QDS-1980
Change-Id: I48a6ff0fd89c9666328c501abb00dc0997171d96
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Users can now modify some settings of Catch tests.
Task-number: QTCREATORBUG-19740
Change-Id: I47e64a43f22fbf783cbf7b256e498d9037533e9a
Reviewed-by: David Schulz <david.schulz@qt.io>
The FormEditor did not take care of deleted transition items
in all cases.
Change-Id: Ic5a700b98ae8c400ffd398c5c6972587e2863971
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
We assume a list property if forceNonDefaultProperty is set.
Change-Id: Iabfe4753dc9af17e0504cb94170597c3b2f3c47b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>