aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/formattexteditor.h
Commit message (Collapse)AuthorAgeFilesLines
* TextEditor: Hide FormatTask in cpp fileJarek Kobus2024-02-261-12/+0
| | | | | | | Unexport it. Change-Id: Ib2e73486e31d115a3e960c7bb4420014172313a7 Reviewed-by: David Schulz <david.schulz@qt.io>
* TextEditor: Move editor field outside of FormatTask structJarek Kobus2024-02-261-14/+2
| | | | | | | | | | | | It doesn't take part in format() processing function, so move this field outside. The format() may be called in separate thread, so, just for safety, don't keep this field there so that nobody accesses it from non-main thread. Remove the c'tor of FormatTask and use list-initialization instead. Change-Id: I54daf1461243a46bbd7f58c91ba051909b6cf280 Reviewed-by: David Schulz <david.schulz@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* QmlJS: Fix cursor position and breakpoints when reformattingEike Ziller2022-11-081-0/+1
| | | | | | | | | | | | Use the intelligent partial text replacement logic that is also used for e.g. the Beautifier formatters. Fixes: QTCREATORBUG-28349 Fixes: QTCREATORBUG-25218 Change-Id: I9ae4052df27c8aa2012106a8ef8f624ba5f3c30b Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io>
* TextEditor: Use FilePath in FormatTaskhjk2022-09-231-3/+6
| | | | | | Change-Id: Iedab9373273271fb21ce5064f0963b24cf7ea4d9 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Beautifier: Move formatting tools to TextEditorIvan Donchevskii2018-08-301-0/+67
Formatting is moved from Beautifier plugin to formattexteditor.h/.cpp. Diff and Differ classes are extracted from DiffEditor to Utils to prevent extra TextEditor dependencies. This change will make possible to use formatCurrentFile and similar functions not only from Beautifier code. Change-Id: Ic5ca668afe88f4e9376d49e6bd3594807172b0dd Reviewed-by: Eike Ziller <eike.ziller@qt.io>