aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
Commit message (Collapse)AuthorAgeFilesLines
* Lua: Add Action.setCheckedMarcus Tillmanns5 days2-0/+25
| | | | | Change-Id: Ic7b7c9bf8296e3314dcca72065e3828a3e860557 Reviewed-by: Eike Ziller <[email protected]>
* Lua: Add run button to scripts from resourcesMarcus Tillmanns2025-11-131-1/+2
| | | | | Change-Id: Id5d525c77f91629720e4b001f5223e0e7a9746c4 Reviewed-by: David Schulz <[email protected]>
* Lua: Persist Script stateMarcus Tillmanns2025-11-133-9/+32
| | | | | | | | | Allows Lua user scripts to use connections and to correctly tear-down widgets when they are restarted. Also closes Widgets when the application wants to quit. Change-Id: I2c65e17d217d11f28e550683d064838d717a51ec Reviewed-by: David Schulz <[email protected]>
* Utils: Add Large variants to QtcWidgets::ButtonAlessandro Portale2025-11-051-1/+7
| | | | | | | | | The former Large* variants become Medium* (current usages get adapted, accordingly) and a new, larger Large* variant gets introduced. Fixes: QTCREATORBUG-33695 Change-Id: I1cd7fa47c62eebdd300032c9cf3cb4bc8b9f59ec Reviewed-by: Cristian Adam <[email protected]>
* TaskTree: Switch to qt-ified QtTaskTreeJarek Kobus2025-10-311-11/+11
| | | | | | | Remove the old Tasking lib. Change-Id: Iacb4939cc873e25d6039efae7dd23510a7baa5f9 Reviewed-by: hjk <[email protected]>
* Lua: Fix REPL input field historyMarcus Tillmanns2025-10-301-6/+14
| | | | | Change-Id: I939ccd72fe8107a098d6dae66f3c240dfd50a88a Reviewed-by: Christian Stenger <[email protected]>
* Merge remote-tracking branch 'origin/18.0'Eike Ziller2025-10-305-10/+15
|\ | | | | | | | | | | | | | | Conflicts: src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp src/plugins/cppeditor/cppmodelmanager.cpp Change-Id: I4bd427d97a252fa4385b0b785600d84ea7263e1c
| * Layoutbuilder: Remove base class from TabMarcus Tillmanns2025-10-283-10/+2
| | | | | | | | | | | | | | | | | | | | The Tab class is only a thin wrapper around a QString and its inner Layout. It does not need to inherit from Widget. Since it never instantiated its Widget, it was seen as "already deleted" by Lua bindings. Change-Id: I859301abc9b73123a843c99fbe248a7c22e10a9c Reviewed-by: hjk <[email protected]> Reviewed-by: <[email protected]>
| * Lua: expose SelectionAspect's itemValueForIndex and volatileValueLukasz Papierkowski2025-10-222-0/+13
| | | | | | | | | | Change-Id: I4b36b9458246f6f06db1f73891eebebeaebb1688 Reviewed-by: Marcus Tillmanns <[email protected]>
* | Utils: Make Utils::HostOsInfo a namespacehjk2025-10-231-8/+15
| | | | | | | | | | | | | | ... instead of a class with static functions Change-Id: Ied380e85adc1841266bb7a64b73aa6f06ced2d03 Reviewed-by: Marcus Tillmanns <[email protected]>
* | Merge remote-tracking branch 'origin/18.0'Eike Ziller2025-10-213-32/+139
|\| | | | | | | | | | | | | Conflicts: src/plugins/docker/dockerdeviceenvironmentaspect.cpp Change-Id: Ic381a75d91e71626af28fec2ab155117a4fdff3a
| * Lua: Add Gui.Object:isValid()Marcus Tillmanns2025-10-213-1/+10
| | | | | | | | | | | | Change-Id: Idfff091745253e93e5199e9f099a9dd188ad3141 Reviewed-by: <[email protected]> Reviewed-by: hjk <[email protected]>
| * Lua: Fix build after QtcTextEdit mergeLukasz Papierkowski2025-10-201-1/+1
| | | | | | | | | | Change-Id: I916f662129ffed495dbbc83525c3a7313b6037e1 Reviewed-by: Marcus Tillmanns <[email protected]>
| * Lua: QtcTextEdit bindingsLukasz Papierkowski2025-10-202-3/+71
| | | | | | | | | | Change-Id: I8f5d243747e60553dd770cb6f907382a14ee1d4a Reviewed-by: Marcus Tillmanns <[email protected]>
| * Lua: Fix possible nullptr access in GuiMarcus Tillmanns2025-10-171-28/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch changes the Thing::ptr to be a QPointer, and adds a onDestroyed field to the Lua bindings. It also adds a function that checks any Thing derived object before accessing it to avoid crashes when the underlying QObject has been deleted, e.g. because it was closed. Since every Thing now has to build a QObject it is no longer useful and is therefore merged into Object. Api: LayoutBuilder::Thing base class has been merged into Object Change-Id: Ie783242e738569cadede81a1c53ea5a8426a796a Reviewed-by: hjk <[email protected]>
* | Unify plugin meta data extensions to start with plugin IDEike Ziller2025-10-211-1/+3
|/ | | | | | | | | | | | | | | We have some meta data values that plugins can set to influence the behavior of other plugins. Unify these to be located in a JSON object with the reading plugin's ID as a key, so we don't end up with a complete mess. The old values are still read for compatibility. Also document the meta data extensions that were added in the meantime. Change-Id: Ice27d0738d330295eb55a023c61cc661a22e9626 Reviewed-by: AndrĂ© Hartmann <[email protected]> Reviewed-by: Marcus Tillmanns <[email protected]>
* Use QStringList instead of QList<QString>Alessandro Portale2025-10-021-1/+1
| | | | | Change-Id: I56fabbfe32ab579ef5e9f7c8cc5fde220b99769a Reviewed-by: Jarek Kobus <[email protected]>
* Use Utils::FilePaths instead of QList<Utils::FilePath>Alessandro Portale2025-10-021-1/+1
| | | | | | | And remove unnecessary Utils:: for FilePath[s] in affected files. Change-Id: I3eba81519c22cded8a48a197c7b1a5d7835673f4 Reviewed-by: Jarek Kobus <[email protected]>
* Avoid including multiple Tr classesEike Ziller2025-09-261-2/+0
| | | | | | | | | | | | | | | | | | | | lupdate has issues finding the right translation context if there are both Tr::tr calls that should be resolved via a `namespace <name> {` scope, and another `using namespace <other>` with a namespace that has another Tr class. Many of the cases of this that we have were editor display names that were defined in the Core plugin for reasons unknown, and which would better be defined in the corresponding plugin anyway. For the other cases do not use Tr::tr from a different plugin, but instead introduce "msg<Something>" functions that do the Tr call plugin- internally. That is the "correct" way to do it anyway, since shared strings should be changeable centrally. Task-number: QTBUG-140548 Change-Id: Idacf62b400f50789b5e5957b690e16aa1ebe5a56 Reviewed-by: Christian Stenger <[email protected]>
* Lua: Fix BaseWidgetOptions::toolTip to be optionalMarcus Tillmanns2025-09-051-1/+1
| | | | | Change-Id: I56e3e3813182ced4a75c8ecf0c1fb7fb5b6c22e8 Reviewed-by: Christian Stenger <[email protected]>
* Avoid QtConcurrent module importsChristian Stenger2025-08-262-1/+2
| | | | | | | | | ...as module imports pull in all headers of the module including all headers of modules they depend on. See discussion around QTBUG-88831. Change-Id: Idef4ca1b6c3c5ce9c8085d469bf3942ad0d9b4f9 Reviewed-by: Jarek Kobus <[email protected]>
* CMake: Use absolute dir attribution file pathsAlexandru Croitor2025-08-121-1/+1
| | | | | | | | Makes it less error prone than using relative paths. Task-number: QTCREATORBUG-31681 Change-Id: Ia7dbb79008139663a932369d4e2273680d8aa52b Reviewed-by: Eike Ziller <[email protected]>
* Merge remote-tracking branch 'origin/17.0'Eike Ziller2025-08-112-0/+10
|\ | | | | | | Change-Id: I93bc107e2edb6d84a42f829602c51558a6816eb4
| * Lua: TextEditor: Expose TextEditor:setFocus()Lukasz Papierkowski2025-07-302-0/+10
| | | | | | | | | | Change-Id: I5030e02447ddd38bf0e6e7cacfbc5211610abb39 Reviewed-by: Marcus Tillmanns <[email protected]>
* | Utils: Use a Lazy<FilePath> for PathChooser::baseDirectory()hjk2025-08-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | ... and FilePathAspect::baseDirectory() (renamed from FilePathAspect::baseFileName(). Api: PathChooser::baseDirectory(): FilePath -> Lazy<FilePath> FilePathAspect::baseFileName(): FilePath -> FilePathAspect::baseDirectory(): Lazy<FilePath> Change-Id: Ic903bd905e1dc087073724300caba3959f312d4a Reviewed-by: Marcus Tillmanns <[email protected]>
* | Lua: Add QtcSearchBoxMarcus Tillmanns2025-07-252-5/+37
| | | | | | | | | | Change-Id: Icd2865ae617d61b7cbec456254cdd055900c2a1d Reviewed-by: Alessandro Portale <[email protected]>
* | Lua: Add MenuBuilder bindingsMarcus Tillmanns2025-07-259-6/+114
| | | | | | | | | | | | Task-number: QTCREATORBUG-33202 Change-Id: I58eb9d4f3783a0c3781501cc273651e6ff1a8ab4 Reviewed-by: hjk <[email protected]>
* | Lua: Simplify onUnarchiverDoneJarek Kobus2025-07-251-5/+2
| | | | | | | | | | Change-Id: Ifd40f49fc277bfc7c2a91c4c7dfb20f0d904ce57 Reviewed-by: Marcus Tillmanns <[email protected]>
* | CMake: Annotate attribution json files to targets that use themAlexandru Croitor2025-07-231-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the attribution file info is not included in the generated SBOM. For bundled 3rd party libraries, also specify the sbom entity type to clearly mark them as 3rd party libraries. Task-number: QTBUG-129609 Task-number: QTCREATORBUG-31681 Change-Id: Ia31fb0ae89288acd95ecd259d77719f2501be9ff Reviewed-by: Eike Ziller <[email protected]>
* | Lua/TaskHub: Fix text mark creation flagEike Ziller2025-07-101-3/+3
| | | | | | | | | | | | | | | | | | | | shouldCreateTextMark is a getter. Amends db4cd8b51232b797e5fa80e0b7bdca9f70416b96 Coverity-Id: 1647540 Change-Id: Ife2c01988823b5cfad98d226140c3489eeda96bf Reviewed-by: Marcus Tillmanns <[email protected]>
* | ProjectExplorer: Dissolve the Task::Options enumChristian Kandeler2025-07-082-15/+50
| | | | | | | | | | | | | | | | | | Use separate members for flashworthiness and text mark creation. The latter will become more flexible in the future. Change-Id: Ifc6189ee86446586f346b8498c05770c71eb4d05 Reviewed-by: Marcus Tillmanns <[email protected]> Reviewed-by: hjk <[email protected]>
* | RunControl: Use RunControl::setRunRecipe()Jarek Kobus2025-07-041-1/+1
| | | | | | | | | | | | | | | | | | Instead of creating RunWorker in createMainWorker(). Rename createMainWorker() into createMainRecipe(). Task-number: QTCREATORBUG-29168 Change-Id: I83a0de876e0ff519b172b4e8e4c8bcbf3ffc6fb4 Reviewed-by: hjk <[email protected]>
* | Merge remote-tracking branch 'origin/17.0'Eike Ziller2025-07-025-9/+49
|\| | | | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs src/plugins/coreplugin/plugininstallwizard.cpp src/plugins/coreplugin/textdocument.cpp Change-Id: I6c8d13a019f1e7142856037481172889f69ae971
| * Lua: Add API for setting the cursor on text editorsEike Ziller2025-06-263-9/+44
| | | | | | | | | | | | | | | | Made the example script that is created with the wizard more fancy correspondingly. Change-Id: Id0cf03e80be3061c9da0a5231938108102a4b6e4 Reviewed-by: Marcus Tillmanns <[email protected]>
| * Lua: Expose Widget.toolTip propertyLukasz Papierkowski2025-06-202-0/+5
| | | | | | | | | | Change-Id: I85217a568ad2f2d4038d6dff46c83707ba580d0e Reviewed-by: Marcus Tillmanns <[email protected]>
* | Macros: Add better examples for "prefix" variablesEike Ziller2025-06-301-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Variables registered with `registerPrefix` are shown in the variable chooser as `Prefix:<value>`, and that was used to show the "current value" as the example in the variable chooser. Add an explicit "example value" to the registerPrefix calls that is used instead of "<value>" for the expanded example in the variable chooser. Fixes: QTCREATORBUG-33120 Change-Id: I4cc522856bf9a7fefeea2ea498de5f67d503b86a Reviewed-by: Alessandro Portale <[email protected]>
* | ProjectExplorer: Make Task members privateChristian Kandeler2025-06-261-14/+12
| | | | | | | | | | | | | | We want to have more control over the usages, especially write accesses. Change-Id: Ib3ae94f9b184cdb75c83a93408f6dfc2effd5a2b Reviewed-by: David Schulz <[email protected]>
* | Merge remote-tracking branch 'origin/17.0'Eike Ziller2025-06-172-1/+11
|\| | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs Change-Id: Iac555437405e993475736232b3cf2402cf9fe8ed
| * Lua: Expose rightSideIconPath property for LineEditLukasz Papierkowski2025-06-172-1/+11
| | | | | | | | | | Change-Id: I668d696d2074f1f4928a461c84f1ecd257a96239 Reviewed-by: Marcus Tillmanns <[email protected]>
* | Utils: Migrate to new spacing tokensAlessandro Portale2025-06-132-2/+2
| | | | | | | | | | | | | | | | | | The spacing tokens in the Figma designs were reorganized. This change adopts the new tokens in Qt Creator. Only constants names do change, all values remain the same as they were. Change-Id: Icedf82bfd55a145ccf3d31d955ddda636ca2f564 Reviewed-by: hjk <[email protected]>
* | Merge remote-tracking branch 'origin/17.0'Eike Ziller2025-05-261-1/+1
|\| | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs Change-Id: If5ab8dda785255d168d7765f33da2b4fe3817183
| * UI text: Fix caps, punctuation, and wordingLeena Miettinen2025-05-221-1/+1
| | | | | | | | | | | | Change-Id: I07eeafe159154505c50686a879ca1e9227cd80f5 Reviewed-by: Eike Ziller <[email protected]>
* | Merge remote-tracking branch 'origin/17.0'Eike Ziller2025-05-212-11/+16
|\| | | | | | | Change-Id: I8f0a5ed3c6a26fd4e6ce06efb5bb93644dffe0d3
| * Utils: Attach lifetime of guardedCallback to Guard objectMarcus Tillmanns2025-05-192-11/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes Utils::guardedCallback() such that the passed in callback object will be deleted once the guard object dies. This is necessary to bind the lifetime of captured variables in a lambda to the guard object. Otherwise the captures might be deleted after the guarded object has long been destroyed which is a problem especially for Lua variables that need the Lua context to be alive during their destruction. This allows us to remove the hack/workaround in InfoBarDisplay::update that used QObject::disconnect(...) to get rid of the connected lambdas immediately. Change-Id: Icd4e187d0fdfed6a6fb9a0d890c43411c104ee55 Reviewed-by: Eike Ziller <[email protected]>
* | Merge remote-tracking branch 'origin/17.0'Eike Ziller2025-05-191-5/+14
|\| | | | | | | | | | | | | Conflicts: src/plugins/squish/objectsmapdocument.cpp Change-Id: I07c6806b2a08fa4c9b5ce688f867e08bd0ed9a2c
| * Lua: Use plurals and do not append "..." to UI strings in codeEike Ziller2025-05-161-5/+10
| | | | | | | | | | | | | | Different languages can use different ways to express this. Change-Id: I8f6b79ab0de6a182fb5f1f91c4ba952b789f5159 Reviewed-by: Marcus Tillmanns <[email protected]>
| * Remove some spaces and line breaks from translatable stringsEike Ziller2025-05-141-4/+8
| | | | | | | | | | | | | | ... and add them in code where necessary instead. Change-Id: I2e6a2a0318bad055766f3d6c92ae0ffe08cb138a Reviewed-by: Leena Miettinen <[email protected]>
* | Merge "Merge remote-tracking branch 'origin/17.0'"The Qt Project2025-05-133-11/+61
|\|
| * Utils: Export QtcLabel to Layoutbuilder and LuaMarcus Tillmanns2025-05-123-11/+61
| | | | | | | | | | Change-Id: I299e002147c89a0a4e51f77b14664aa499fd3277 Reviewed-by: Alessandro Portale <[email protected]>
* | Update InfoBar texts, titles and typesAlessandro Portale2025-05-122-0/+4
|/ | | | | | | Task-number: QTCREATORBUG-32075 Change-Id: Ib3e84bdc455cc28c5ac30c14adb54668bcd29a79 Reviewed-by: Eike Ziller <[email protected]> Reviewed-by: Leena Miettinen <[email protected]>