Commit Graph

80529 Commits

Author SHA1 Message Date
Christian Stenger
885c6c1f0e Pdb: Change shutdown handling behavior
Directly finish the debugger when program ends if the
debugger is in running state as this feels more natural.
Only get into post-mortem handling when stepping.

Change-Id: I6ac6600a7cb8f58a003a6e4783174864ed5e89d8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2023-02-14 06:44:07 +00:00
Christian Stenger
0ffb85b4d8 AutoTest: Improve test output handling
Instead of just providing the hidden search, provide a more
obvious present filter functionality for the text output
similar to what is done in other output windows.
This still has the find functionality present as well.

Task-number: QTCREATORBUG-28706
Change-Id: I8f8b1494d86c90cbb9ea6bfad3f0e74caf3de2c9
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-14 06:41:22 +00:00
Christian Stenger
a8d493d352 TextEditor: Fix typo
Change-Id: I3dcf98827789882ea9cd7a5c4072173a2f33b97a
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-14 06:40:28 +00:00
Robert Löhning
b7f235edb6 SquishTests: Avoid known bug with CMake-based Widgets projects
...and start testing it again as soon as the report is closed.

Task-number: QTCREATORBUG-28787
Change-Id: Ib33efb6ef2851726a183576bfde5db0a1a5d8c38
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-13 21:34:56 +00:00
Orgad Shaneh
adfb5062f4 Git: Do *not* use ctrlc stub for rev-list
It's a very short command, so the time penalty for spawning another
process doesn't worth the additional termination protection.

Amends commit 371e674967.

Change-Id: I151f0bc1838cd9ddbdf822cbe5cf8923da6a9499
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-13 18:44:25 +00:00
hjk
7faad7b4e8 Android: Move a global regexp variable into a function
Change-Id: I888e11b2e16553cd14e4e07335ef90b8094b6cbf
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-13 18:36:07 +00:00
Orgad Shaneh
c2cfe596b9 Git: Reduce PATH searches for executable
This reduces executions in BranchModel::updateUpstreamStatus (which is
called for each local branch with a tracking branch) from 3s to ~700ms
on Windows.

Change-Id: I92651ba8f37987bef49a80b46963964ae8cacb3c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-13 18:31:54 +00:00
Orgad Shaneh
728e73ea9d C++: Fix return type in preprocessor comparator
Change-Id: I6d85a78892291db7ae0b1de8a7e3b74d0401874a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-13 17:49:03 +00:00
Leena Miettinen
1e6933f48d Doc: Reorganize the Debugger topic
Divide the long topics into shorter ones and reorganize the
information.

The next step will be to improve the current topics: check that
the information is complete, add screenshots for all views, add
links between related topics, and so on.

Task-number: QTCREATORBUG-28778
Change-Id: I3549289a2be512bb09f45c91f85b12f89cedbe97
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-13 14:37:39 +00:00
Pranta Dastider
6b6ff2aeeb QmlDesigner: Update Tooltips for FLOW Section
This patch update tooltip text for FLOW fields
in Property editor.

Fixes: QDS-9066
Change-Id: I097263e66a83673fbc0d6c95515ee5517b6bdf0d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-13 13:57:03 +00:00
Pranta Dastider
ec625a3750 QmlDesigner: Update Tooltips for GRID VIEW Section
This patch update tooltip text for GRID VIEW fields
in Property editor.

Fixes: QDS-9062
Change-Id: I27d42af166a44480a44c0db0c28d51a64a625e12
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-13 13:56:59 +00:00
Pranta Dastider
8947404074 QmlDesigner: Update Tooltips for GRID Section
This patch update tooltip text for GRID section fields
in Property editor.

Fixes: QDS-9067
Change-Id: I0e41d4c668cc141aceeb8565665be012edb9c984
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-13 13:56:57 +00:00
Christian Kandeler
70506ff136 Update qbs submodule to HEAD of 2.0 branch
Change-Id: Id69e8571ae1ac276ebfcab1eb0994012376cf4c4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-13 13:56:37 +00:00
Brook Cronin
9e3490c1ba QmlDesigner: Add toolbar to Asset Library
* Align delegate thumbnail properly
* Make selection rectangle completely visible
* Remove tree view indentation rectangle
* Use predefined font sizes
* Code cleanup

Change-Id: Id2ffd0d4a70a3922c3ddcdddd1e88352ce90dba6
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-13 13:26:34 +00:00
Brook Cronin
28bb9d7d72 QmlDesigner: Add toolbar to content library
Change-Id: I28045fdd0346ad08d9636c25c3942a3facaf00fe
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-13 10:50:18 +00:00
Brook Cronin
ae521b5394 QmlDesigner: fix blocked color for toolbar icons
Change-Id: I44a3f66f57b92cefbe14c8014dd7e85a1af707f6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-13 09:36:37 +00:00
Alessandro Portale
9f2f2f3390 Translations: Change translation context prefix from "::" to "QtC::"
lupdate would be confused by translation contexts starting with ::

Change-Id: Ie95e73436fd3cafc80a8e89f908efadc747e644c
Reviewed-by: hjk <hjk@qt.io>
2023-02-10 16:27:55 +00:00
Alessandro Portale
226799858c Translations: Replace QCoreApplication::translate() with Tr::tr()
Calling <Module>::Tr::tr() is preferred over
QCoreApplication::translate("::<Module>", "..."). This changes
occurrences in .cpp files.

Change-Id: I3311ef0dbf3e7d105a3f181b6b988f3b444468f1
Reviewed-by: hjk <hjk@qt.io>
2023-02-10 16:27:37 +00:00
Alessandro Portale
14280acfd9 Translations: Merge orphaned contexts
Following orphaned contexts are merged into ::Debugger

  QtDumperHelper
  Analyzer

Following orphaned contexts are merged into ::Git

  Gerrit::Internal::GerritDialog
  Gerrit::Internal::GerritPushDialog

Following orphaned contexts are merged into ::QmlJSTools

  QmlJSTools::QmlJSToolsSettings

Following orphaned contexts are merged into ::Android

  QWidget

Change-Id: I5263104b96520e2b7701366962d6f63b9b595f68
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-10 16:27:26 +00:00
Alessandro Portale
64aaf66c3b Proliferate Tr::tr in various places
This changes several tr() calls which were either missed during Tr::tr-
ization or were added later.

Found with regular expression: (?<!(Tr::)|([\w]))tr\(

Change-Id: I1c0c03589e941614a7a8449ecfebc7d2cad396c3
Reviewed-by: hjk <hjk@qt.io>
2023-02-10 16:27:19 +00:00
Alessandro Portale
6138414813 Tests: Remove a couple of tr() calls
No need to have them translatable and to risk lupdating them.

Change-Id: I41c84240ed30ffb6e19ab133422f4e5fb3a97aa4
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-10 16:27:08 +00:00
Alessandro Portale
ba34f00e1e ModelEditor: Tr::tr()
Following orphaned contexts are merged into ::ModelEditor

  ModelEditor::Internal::ActionHandler
  ModelEditor::Internal::ElementTasks
  ModelEditor::Internal::ExtPropertiesMView
  ModelEditor::Internal::FileWizardFactory
  ModelEditor::Internal::ModelDocument
  ModelEditor::Internal::ModelEditor
  ModelEditor::Internal::ModelsManager
  ModelEditor::Internal::PxNodeController
  Modeling

Change-Id: Ib602b91af7a4b8d8f886e587e6988338b1e841e8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-10 16:27:03 +00:00
Alessandro Portale
3c6b8b08df ModelingLib: Tr::tr()
Following orphaned contexts are merged into ::qmt

  qmt::ClassItem
  qmt::DiagramController
  qmt::DiagramSceneController
  qmt::DocumentController
  qmt::Exception
  qmt::FileCreationException
  qmt::FileNotFoundException
  qmt::FileReadError
  qmt::FileWriteError
  qmt::IllegalXmlFile
  qmt::ModelController
  qmt::ModelTreeView
  qmt::NullPointerException
  qmt::ObjectItem
  qmt::ProjectController
  qmt::PropertiesView::MView
  qmt::TreeModel
  qmt::UnknownFileVersion
  qmt::V

Change-Id: Iaf98c2bfc654452d44f6bed155be6ddfe7556b19
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-10 16:26:57 +00:00
Alessandro Portale
fe91151f7c Valgrind: Tr::tr()
Change-Id: I4156aa23755ad28ca6fbc3ff5ce6d5b6a6d7fc95
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-10 16:26:51 +00:00
Alessandro Portale
91c00ec34f SilverSearcher: Tr::tr()
Change-Id: I4b9aef9c735c07a4836653bdb6d684fb3e0f993e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-10 16:26:44 +00:00
Pranta Dastider
caa3c23e99 QmlDesigner: Update Tooltips for LIST VIEW Section
This patch update tooltip text for LIST VIEW fields
in Property editor.

Fixes: QDS-9063
Change-Id: Iae81ba218cfc4c07e6a0023bd6a8dcc7cc35caa2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-10 15:58:17 +00:00
Thomas Hartmann
4d54a16a49 QmlDesigner: Remove legacy code path from TextToNodelMerger
We can use NodeMetaInfo instead of directly accessing the code model.

Task-number: QDS-8800
Change-Id: I1d73e2a470c40a15e5237544746cb4b841f8e1b7
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-02-10 15:36:35 +00:00
Christian Stenger
ab4516c85c Pdb: Make another builtins usage implicit
Amends f6afedeea6.

Change-Id: Idc0ffb9f0c24515475334a847382fc84c5c03e2e
Reviewed-by: hjk <hjk@qt.io>
2023-02-10 15:31:03 +00:00
Pranta Dastider
e9b1491a17 QmlDesigner: Update Tooltips for CheckBox Section
This patch update tooltip text for CheckBox section field
in Property editor.

Fixes: QDS-9070
Change-Id: Ife011ea0279af4db2d9e7fdfb882e98bdcee3269
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-10 15:14:48 +00:00
Pranta Dastider
f6eeb150a1 QmlDesigner: Update Tooltips for Busy Indicator Section
This patch update tooltip text for Busy Indicator section field
in Property editor.

Fixes: QDS-9069
Change-Id: Ia542605acdfedcff191befb81b80fdf2a86d7343
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-10 15:14:41 +00:00
Brook Cronin
b06f3679c2 QMlDesigner: Add toolbar to component view
Change-Id: Ief79152813e6afec70208633b38bce20254e7105
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-10 15:12:57 +00:00
Alessandro Portale
2b46d1943c QmlPreview: Tr::tr()
Change-Id: Ie80134c114da277ab16e4305c57ae35e37adafb2
Reviewed-by: hjk <hjk@qt.io>
2023-02-10 15:11:22 +00:00
Pranta Dastider
26c3fe0428 QmlDesigner: Update Tooltips for DelayButton Section
This patch update tooltip text for DelayButton section field
in Property editor.

Fixes: QDS-9071
Change-Id: Iade7261f3552b77542807939804a98f2becbdb07
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-10 15:07:34 +00:00
Pranta Dastider
5a180618e2 QmlDesigner: Update Tooltips for ROW Section
This patch update tooltip text for ROW section fields
in Property editor.

Fixes: QDS-9068
Change-Id: Id77faf6745cf03860a24d8c612b6c5ef37a0850d
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-10 15:07:28 +00:00
Pranta Dastider
62753043d5 QmlDesigner: Update Tooltips for PATH VIEW Section
This patch update tooltip text for PATH VIEW fields
in Property editor.

Fixes: QDS-9064
Change-Id: Iad52494dfbbdc3554131d24ab679a3c21f96737a
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-10 15:07:22 +00:00
Pranta Dastider
95b8fa39d2 QmlDesigner: Update Tooltips for COLUMN Section
This patch update tooltip text for COLUMN fields
in Property editor.

Fixes: QDS-9065
Change-Id: Iabd573d727cb983970fe50415b912da0e219db84
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-10 15:07:15 +00:00
Brook Cronin
9799e9588a QmlDesigner: Add toolbar to material browser
Change-Id: I7be59839c8260b6b66127ca2e0708f5a804ee94f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-10 15:04:36 +00:00
Alessandro Portale
4f55dbdd38 CompilationDatabaseProjectManager: Tr::tr()
Change-Id: I5a4b05ce3eab90cfe05c297fa3971f94270ec474
Reviewed-by: hjk <hjk@qt.io>
2023-02-10 15:03:32 +00:00
Orgad Shaneh
c72638ed74 QtcProcess: Introduce a way to track long-running blocking processes
...in the main thread.

Set QTC_PROCESS_THRESHOLD (in ms) to receive warnings for them.

Change-Id: Ia9e9c14b5ca339bfa2be82930518f988f56620c2
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-10 14:45:24 +00:00
Miikka Heikkinen
8237236b1b QmlDesigner: Treat enter key as doubleclick in material browser
Open and/or focus material or texture editor on enter key press on
material browser.

Fixes: QDS-9106
Change-Id: I55bd6143c3285f2fbcfa093063e84747b96590c9
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-10 14:11:15 +00:00
Christian Stenger
a8bc009595 Debugger: Avoid potential crash
Change-Id: I971453c30f29144e87b2384c9c6a0c2413db218a
Reviewed-by: hjk <hjk@qt.io>
2023-02-10 14:01:30 +00:00
Miikka Heikkinen
ce69374170 QmlDesigner: Fix keyboard navigation in material browser
Keyboard navigation now accounts for collapsed sections and
items hidden with search filter. Also, navigation is suppressed
while search box has focus.

Fixes: QDS-9108
Change-Id: I9fb555803cd72fb3550d5e30e20c62a40f845ef3
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-10 13:43:22 +00:00
Brook Cronin
fd139a4fa1 QmlDesigner: Fix small style mistakes
Change-Id: I9a75a99276e7f0d2883d45461adf6084c5781663
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-10 12:59:22 +00:00
Brook Cronin
590e0de9c5 QmlDesigner: Apply new toolbars to material and texture editors
Change-Id: I0dc0f894f70abc94a4670afd35871595030f7fed
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-10 12:40:15 +00:00
Christian Stenger
f6afedeea6 Debugger: Do not crash when using a builtin as value
Explicitly use str(), type() and similar from builtins
to avoid confusing the the debugger when these builtin
functions are overwritten by the script which is going
to get debugged.

Fixes: QTCREATORBUG-28733
Change-Id: I6b7bd1d7474972d0533d12a1bc45bb59db7f39b5
Reviewed-by: hjk <hjk@qt.io>
2023-02-10 12:35:26 +00:00
Thomas Hartmann
129a5c4598 QmlDesigner: Add more output to debug view
Change-Id: Ia025440e7c01040bdca32bcc1a0f7bb7f59216bc
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-10 11:43:12 +00:00
Thomas Hartmann
c26ef7becc QmlDesigner: Add QTC_ASSERT
This allows spotting this in packages.

Change-Id: Ib69708e2aa02357763ebaffcd6a1394cc763642e
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-10 11:43:03 +00:00
Thomas Hartmann
db3ff0c207 QmlDesigner: Allow settings and swtiching kits in edit mode
If kits are broken, then users can end up in the edit mode.
We should allow changing kits and settings here.

Change-Id: Ic6410942c3b0c1d9e7c04989efab57d7690c0694
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-10 11:42:52 +00:00
Thomas Hartmann
4ef9e04f2b QmlDesigner: Fix crash
If we delete the item we also delete the children.
This will crash if the children is further down the list.
We have to delete without children.

Task-number: QDS-8961
Change-Id: Ia17f9ef23339dbe36e848fa49928cb3c0077d6f1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-10 11:00:51 +00:00
Jarek Kobus
06dda40ccc TaskTree: Add synchronous invocation (Tasking::Sync)
Make it possible to mix synchronous and asynchronous calls
inside task tree.

Basically, it's a shortcut for:

bool syncMethod();
Group {
    OnGroupSetup([syncMethod] { return syncMethod()
                                ? TaskAction::StopWithDone
                                : TaskAction::StopWithError; })
}

Please note: similarly to Group, Sync isn't counted as a task
inside taskCount() and doesn't emit TaskTree::progressValueChanged()
when finished. It's being considered as a simple handler
that doesn't last long and shouldn't block the GUI thread.
Otherwise, use AsyncTask instead.

Change-Id: If71c5da2f9b202a69c41a555cc93d314476952f4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-10 10:50:47 +00:00