aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/colorpreviewhoverhandler.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Show color previews for QML functionsXavier BESSON2024-01-221-3/+11
| | | | | | Task-number: QTCREATORBUG-29966 Change-Id: I41aa37bdc446d2b238a6a9ec0f3bd73b3fae550a Reviewed-by: David Schulz <david.schulz@qt.io>
* QScopeGuard: Make all usages of QScopeGuard consistentJarek Kobus2023-06-071-1/+1
| | | | | | | Change-Id: Icfc35ecbdbdee8dadbb1b17789694093427c3ed9 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* TextEditor: Reuse qScopeGuard instead of ExecuteOnDestructionJarek Kobus2023-06-051-5/+4
| | | | | | | | Change-Id: I2ca7d4676bb4f34fbf59fd45bcd01d7857cb7e4e Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* 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>
* 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>
* More Qt 6 fixeshjk2020-06-231-1/+1
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: I1e30b49218b18f426aea6e4cd3680be513894746 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* TextEditor: ModernizeAlessandro Portale2018-11-301-6/+4
| | | | | | | | modernize-* Change-Id: Ic497fea1942a77cf017be3b0033f92e3807066f1 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: hjk <hjk@qt.io>
* TextEditor: Return hover handler priority by callbackNikolai Kosjar2018-01-191-1/+6
| | | | | | | ...to get rid of the asynchronous code path. Change-Id: I56377510440631b0be712333b2a4018717c86389 Reviewed-by: David Schulz <david.schulz@qt.io>
* Use const'ref in theses methodsMontel Laurent2017-04-211-1/+1
| | | | | Change-Id: Idfa5ffdcf23d1ef80442276690b8082b8279dbfa Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Editor: Fix assert in color preview.David Schulz2016-03-231-6/+6
| | | | | | | | The event that triggers the hoverhandler can occur on the last position in a textline. This position is identical to the text length. Change-Id: Ia73685b69793fc305094db6611c95c3f03e3a8eb Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Licensing: Remove last LGPL holdoutsTobias Hunger2016-01-201-17/+12
| | | | | Change-Id: I93c564c0e8980bdeed8ae7fda0ed2528b1b218cb Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* texteditor: add a hover handler which shows color preview tooltipsMarc Reilly2016-01-181-0/+392
This adds a new hover handler which matches stand-alone color strings like "#112233" or "Qt::yellow" or function argument tuples for colors such as "QColor(0x11, 0x22, 0x33)". When matching against function arguments, the function name must correspond to a recognized color function (setRgb, etc. This is biased towards cpp text, but not limited to such). The matching occurs when hovering over the arguments, not the function. If a match is identified, the hover handler gives it a relatively high ranking. Change-Id: Ied2927399cb19d6f562185a8b087f0ce118157db Reviewed-by: David Schulz <david.schulz@theqtcompany.com>