aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/console
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/16.0'Eike Ziller2025-03-191-0/+2
|\ | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs Change-Id: I3621af6bd63bb326555faa5a7778f58ccb271065
| * Theme: Mark some widgets as panel widgetChristian Stenger2025-03-171-0/+2
| | | | | | | | | | | | Task-number: QTCREATORBUG-31845 Change-Id: Ia6929bd75a8ee0e48d0b0293f5e65dc9f1485972 Reviewed-by: Alessandro Portale <[email protected]>
* | Drop a few unneeded #includeshjk2025-03-041-1/+0
|/ | | | | Change-Id: Ifb4cddb9da4eeebdbce809e2565f91e5e2d34f10 Reviewed-by: Jarek Kobus <[email protected]>
* Utils: Add a simple way to make a Utils::TreeView searchablehjk2024-07-181-5/+1
| | | | | | | | | Call setSearchRole(...) to create a suitable find aggregate. Use it in a few places. Change-Id: Iaa663d13bbc7776019e7b18ea720cc2411e0b691 Reviewed-by: Eike Ziller <[email protected]>
* Aggregation: Add a convenience function to create simple aggregateshjk2024-07-151-3/+1
| | | | | Change-Id: I03300f1fcc20314d392012fd288ef0fc2501d403 Reviewed-by: Eike Ziller <[email protected]>
* Debugger: Fix action handling of QML Console filter buttonshjk2024-06-111-6/+8
| | | | | | | | Amends 93a58039561b. Fixes: QTCREATORBUG-30788 Change-Id: I3699e07e67821098500b5b4f85a15d8b19f57ec5 Reviewed-by: Christian Stenger <[email protected]>
* Debugger: Simplify some redundant file property checkshjk2024-06-041-2/+1
| | | | | Change-Id: Ie6d638d0ece7b08dc28058f74f4c37910ffb6d83 Reviewed-by: David Schulz <[email protected]>
* Utils: Introduce a convenience function creatorColor()hjk2024-05-291-6/+5
| | | | | | | ... forwarding to creatorTheme()->color(...) Change-Id: Iefaa043495127b3e500ed225584481d3ec0f8c1f Reviewed-by: Alessandro Portale <[email protected]>
* OutputPane: Use setter for priority and fix default visibilityEike Ziller2023-09-182-6/+2
| | | | | | | | | | Do not show the buttons of output views with priority < 0 (instead of only == -1). Reduce the number of buttons that are shown by default to the essential ones. Change-Id: I5b44f18537b3033ce9d616f044a8b54b76988783 Reviewed-by: <[email protected]> Reviewed-by: Marcus Tillmanns <[email protected]>
* OutputPane: Add an id() for the settingsEike Ziller2023-09-181-0/+1
| | | | | | | | It was using the displayName for the key in the settings (visibility and shortcut), which is annoying when changing the language. Change-Id: Iffa784347c59389599c90f468dcba15834599c39 Reviewed-by: Marcus Tillmanns <[email protected]>
* OutputPane: Use setter for display nameEike Ziller2023-09-182-6/+1
| | | | | Change-Id: I2e89fbd052330c9e7124272c2f2fa81a0db94de9 Reviewed-by: Marcus Tillmanns <[email protected]>
* Utils: Make TreeViews use setUniformRowHeights by defaulthjk2023-09-051-0/+1
| | | | | | | | | | | | When applicable, the flag makes a significant difference in performacnce. However is easily forgotten in cases where it is applicable, and cases where it is accidentally used are easily spotted visually. So arguably, opt-out is a better default than opt-in. Change-Id: I88aeb05b42533ba4e23c39573a3ddd016343cd55 Reviewed-by: hjk <[email protected]> Reviewed-by: Christian Stenger <[email protected]>
* Utils: Make aspect settings access implicithjk2023-07-071-8/+6
| | | | | | | | | | | | Generally, aspects should use fromMap/toMap, but some older pages use {from,to}Settings with always the same ICore::settings(). To make that less intrusive on the user code side, make that globally implicit. Task-number: QTCREATORBUG-29167 Change-Id: I29a8e23a31eb8061bb143e93931a07c6741eb7f9 Reviewed-by: Christian Stenger <[email protected]>
* Utils: Rework aspect implementationhjk2023-06-291-4/+4
| | | | | | | | | | This avoids some repetition and could be a step towards having type storage in (or rather accessible from) the base, so we can have aspects for more complex data (treemodels...) that are not easily converted to QVariant. Change-Id: I9797b3d5646195705212db1830d2b415291ac651 Reviewed-by: Christian Stenger <[email protected]>
* Debugger: Avoid duplicate commit and closeChristian Stenger2023-03-291-5/+0
| | | | | | | | | | | The delegate triggers a commit and close already when the focus is switched. So, the additional calls will end up in a warning deep inside QAbstractItemView and not processed. Get rid of the obsolete calls and the warnings. Change-Id: Ic27f6b1aa0b73f4bb82b0878650d8ae8ae8f87d2 Reviewed-by: hjk <[email protected]>
* Translations: Replace QCoreApplication::translate() with Tr::tr()Alessandro Portale2023-02-101-3/+1
| | | | | | | | | Calling <Module>::Tr::tr() is preferred over QCoreApplication::translate("::<Module>", "..."). This changes occurrences in .cpp files. Change-Id: I3311ef0dbf3e7d105a3f181b6b988f3b444468f1 Reviewed-by: hjk <[email protected]>
* Prefix Tr::tr contexts with ::hjk2023-01-131-1/+1
| | | | | | | To make outliers better visible in Linguist Change-Id: Ic35ea2a858b7e3576d9a416fb494fddb616eaaa1 Reviewed-by: Eike Ziller <[email protected]>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-0614-14/+14
| | | | | | | | | | | | | | | 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 <[email protected]>
* Use SPDX license identifiersLucie Gérard2022-08-2614-336/+28
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <[email protected]>
* Drop Qt5: Debugger: Remove code below Qt 6.0.0Jarek Kobus2022-07-251-4/+0
| | | | | Change-Id: I6ccc87465e7bac13268b426070544ca84e0616b2 Reviewed-by: hjk <[email protected]>
* Debugger: Convert to Tr::trhjk2022-07-0814-95/+52
| | | | | Change-Id: I5d2475c790851c68f9997ac6af72b5eaca58482d Reviewed-by: Eike Ziller <[email protected]>
* Debugger: Use new clipboard setting conveniencehjk2022-06-201-3/+3
| | | | | Change-Id: I4bbbff708287a0999c8009b6c2bd91967ee63808 Reviewed-by: Eike Ziller <[email protected]>
* Rename QtSupport::BaseQtVersion to QtVersionhjk2022-01-241-1/+1
| | | | | | | | | | ... and the Utils::QtVersion enum to Utils::QtMajorVersion to avoid conflicts. Change-Id: Ib688c67388272b7204a91444155f60b8c18a56bd Reviewed-by: <[email protected]> Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Christian Kandeler <[email protected]>
* Remove qmake build filesEike Ziller2022-01-201-17/+0
| | | | | | | | | | Removes qmake as a build system for building Qt Creator itself. Keep them for some tests that are not completely moved to CMake yet. Change-Id: I846c6ef65626b6dfae6375fdc85d00677aa8c2fb Reviewed-by: hjk <[email protected]> Reviewed-by: Christian Kandeler <[email protected]> Reviewed-by: Christian Stenger <[email protected]>
* EditorManager: Remove QString openEditor(At) overloadsEike Ziller2021-11-021-5/+4
| | | | | | | | In favor of the FilePath/Link ones. Change-Id: I5caf9e0f8de304ff4ee12329557aa50a6f3a0c69 Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: David Schulz <[email protected]>
* Debugger: Aspectify settingshjk2021-03-032-38/+36
| | | | | Change-Id: I527be79965250b82a0928171b17aa93bac9fa2a0 Reviewed-by: David Schulz <[email protected]>
* Debugger: Fix theming issues in the QML Debugger ConsoleAlessandro Portale2021-02-083-18/+12
| | | | | | | | | | | Use QPalette::HighlightedText for text on selected QML debugger console items. Also, use QPalette::Highlight/Base for the background area. Both changes make the console behave like a standard Qt itemview in that regard, and therefore ensure a proper text contrast of selected items. Fixes: QTCREATORBUG-25200 Change-Id: Ia292069c3b8d749166356496f16665345b57e3e0 Reviewed-by: hjk <[email protected]>
* Merge remote-tracking branch 'origin/4.14'Eike Ziller2020-11-191-1/+1
|\ | | | | | | Change-Id: Iea84f23cf394de13e99a9ed777c8c113e4eff473
| * Fix warnings about possible detach of temporary objectsJarek Kobus2020-11-161-1/+1
| | | | | | | | | | | | | | | | | | Calling first() or last() on temporary container may unnecessarily detach the container. Fix it by calling constFirst() and constLast(). Change-Id: I2460efd5dbee1534eec8a514d9bff2a947bfddf9 Reviewed-by: Tim Jenssen <[email protected]>
* | Decorate some classes and methods with final keywordJarek Kobus2020-11-191-1/+1
|/ | | | | | | | | | | This way we silence the clang warnings about calling virtual methods from c'tor or from d'tor: [clang-analyzer-optin.cplusplus.VirtualCall] Change-Id: I8d6318b490152133da4833bda2ba28622bce30dd Reviewed-by: hjk <[email protected]> Reviewed-by: Alessandro Portale <[email protected]> Reviewed-by: Eike Ziller <[email protected]>
* Core: De-pure IOutputPane::visibilityChanged()Orgad Shaneh2020-10-092-5/+0
| | | | | | | | Most implementations are empty. Change-Id: I811cacfc2918c8b2803798c4f5d3dabc7d60ccd1 Reviewed-by: André Hartmann <[email protected]> Reviewed-by: hjk <[email protected]>
* Utils: Start replacing SavedActions by QAction or Utils::Aspecthjk2020-10-051-6/+6
| | | | | | | | First mechanical step here is to derive SavedActions from BaseAspect instead of QAction. Change-Id: I2ec95883b825462c1d867f83cc2b3bd2c2732055 Reviewed-by: Christian Stenger <[email protected]>
* Debugger: Fix build with Qt6Eike Ziller2020-09-181-2/+7
| | | | | | | | | | QStringRef gone. ViewOptions changed. MetaType register stream operators automatically. Task-number: QTCREATORBUG-24098 Change-Id: Ibf98561af951aa5fc4ec483d18dafeaad02e07c3 Reviewed-by: hjk <[email protected]>
* Debugger: Remove ConsoleViewStyleChristian Stenger2020-07-161-40/+0
| | | | | | | | | | | This interferes with the general theming of the output pane and the purpose is no more obvious. This patch fixes using a wrong scrollbar style on the QML Debugger Console. Change-Id: I4dfeecb77746b345f35809dd5e1bcb27a0fcd604 Reviewed-by: Robert Loehning <[email protected]> Reviewed-by: hjk <[email protected]>
* Debugger: Shuffle plugin setup code aroundhjk2019-09-232-16/+0
| | | | | | | To get closer to the standard setup. Change-Id: I969abb44393532f5dba95e643bd8ba6356f44d16 Reviewed-by: Christian Stenger <[email protected]>
* Remove usages of deprecated APIs of QLayoutSona Kurazyan2019-09-021-1/+1
| | | | | | | | | | Replaced: QLayout::setMargin() -> QLayout::setContentsMargins() QLayout::margin() -> QLayout::getContentsMargins() Task-number: QTBUG-76491 Change-Id: If28ef6910b3afe5d04e4746b74f9362a3e3b3c8e Reviewed-by: Eike Ziller <[email protected]>
* Avoid warning on empty expressionshjk2019-07-231-1/+1
| | | | | | | | For some reason, Q_UNUSED includes already a semicolon, adding one on the user side creates an additional empty statement. Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0 Reviewed-by: Christian Stenger <[email protected]>
* Remove a couple of "setAutoRaise(true)" for toolbar buttonsAlessandro Portale2019-04-291-3/+0
| | | | | | | | | Most of the QToolButtons in the toolbars don't set autoRaise, and they are fine. I assume that those who do set it, just do it for because that line was copy/pasted so often. Change-Id: I71341ddbd26a586d34713661ec538b37033685e5 Reviewed-by: Eike Ziller <[email protected]>
* Merge remote-tracking branch 'origin/4.9'Eike Ziller2019-03-141-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: qbs/modules/qtc/qtc.qbs qtcreator.pri src/plugins/debugger/debuggerkitinformation.cpp src/plugins/languageclient/languageclientmanager.cpp src/plugins/plugins.pro src/plugins/projectexplorer/kit.cpp src/plugins/projectexplorer/kitmanager.cpp Change-Id: I66fb941202991f35f7d7761430b21e42dfc678a8
| * Debugger: Rename Debugger Console to QML Debugger Consolehjk2019-03-121-1/+1
| | | | | | | | | | | | | | | | That's what it is. Change-Id: Ia981a0f1882f20821a77eaccc3f961f3fb22caa9 Task-number: QTCREATORBUG-19870 Reviewed-by: Eike Ziller <[email protected]>
* | Resolve ambiguous results of searches for relative file pathsChristian Kandeler2019-03-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Qt Creator extracts file names from the output of external processes in various places, for instance from compilers during the build. It often happens that such file names are not absolute, so they cannot be directly opened in an editor when the user clicks on their representation in some widget. That's why they are processed by the FileInProjectFinder facility first. This patch enhances the FileInProjectFinder to be able to return more than one candidate for a relative file path, and allows the user to choose between these candidates where possible. This way, we won't open a random file anymore when a project contains more than one file with the same name. Fixes: QTCREATORBUG-13623 Change-Id: Id19c9eace3e6b3dbde89f6528e6d02b55872d747 Reviewed-by: hjk <[email protected]>
* | Fix Qt 5.13 deprecation warning about QFontMetrics::width()Friedemann Kleint2019-02-152-4/+4
|/ | | | | | | | | Replace by QFontMetrics::horizontalAdvance(), fixing: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] Change-Id: I9991ffefe6e87e872dc35ba291d562e06b28ca64 Reviewed-by: Alessandro Portale <[email protected]>
* Debugger: Strip QLatin1* where possibleOrgad Shaneh2018-10-134-32/+32
| | | | | Change-Id: Idcab23875b5dc2ecf55e3303f417b995e2252720 Reviewed-by: hjk <[email protected]>
* Debugger: ModernizeAlessandro Portale2018-07-2512-42/+40
| | | | | | | | | | | | | modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init modernize-use-equals-default Change-Id: I91a6874f0d7b94e9079ab4ef07c23c60c80be9c0 Reviewed-by: Christian Stenger <[email protected]> Reviewed-by: hjk <[email protected]>
* Debugger: Use FileInProjectFinder for the console viewUlf Hermann2018-06-144-22/+22
| | | | | | | | | All the functionality to guess local files from remote paths is already there. Change-Id: I5bffeb0f126efef99edbaf152e1a5e9e1d244699 Task-number: QTCREATORBUG-12008 Reviewed-by: hjk <[email protected]>
* Debugger: Remove Qt 4 specific code path in ConsoleViewAlessandro Portale2018-06-131-7/+0
| | | | | | | Qt 5 does not come with plastique or cleanlook styles. Change-Id: I716303b3344504f8f19c31b29bd7530ccc0c2e39 Reviewed-by: hjk <[email protected]>
* Debugger: Use override consistentlyTobias Hunger2018-05-071-17/+17
| | | | | | | clang-tidy fixes from modernize-use-override check. Change-Id: I6a20484716dc5bd84fe9592b40ae57be66fe32bf Reviewed-by: hjk <[email protected]>
* Debugger: Do not create the console unnecessarilyhjk2018-02-282-1/+11
| | | | | | | Triggering console creation in the plugin destructor is not needed. Change-Id: Ic21016e7a19fa08ea7dd03a8364aa6fc229bb2d1 Reviewed-by: David Schulz <[email protected]>
* Debugger: Modernizehjk2018-02-013-5/+7
| | | | | | | Mostly nullptr instead of 0, but also a few bits of collateral damage. Change-Id: I921991272aca921dcdecf302dfff3716e79dfc24 Reviewed-by: David Schulz <[email protected]>
* Make the debugger console theme awareUlf Hermann2017-03-162-63/+16
| | | | | | | | | | Use the generic output panes colors rather than hand rolled ones. Also, remove the prompt icon and use the "next" icon instead, and remove the borders between console items. Change-Id: I219badbfbbde3aa01d7937ff505205cb9d725a43 Task-number: QTCREATORBUG-17532 Reviewed-by: hjk <[email protected]>