aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/serialterminal
Commit message (Collapse)AuthorAgeFilesLines
* PluginSpecs: Change URLs from http:// to https://Alessandro Portale2024-05-281-1/+1
| | | | | | | | | | Avoid the redirect that is inevitable nowerdays. Also, change necessitas.kde.org to www.qt.io, since the orgininal page is offline. Change-Id: Ib1823f0df97d2df87822fd2bb7552e2f2c7e971e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* SerialTerminal: Hide plugin class in .cpphjk2024-01-174-63/+43
| | | | | Change-Id: I9d1a179a9de4f0e95fe60b62b91743c540534246 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Utils, all: Standardize on QtcSettingshjk2023-09-272-13/+14
| | | | | Change-Id: Id222016f15b1c3bfe6710fe5d0297666d4565ef1 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* 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: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* 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 <marcus.tillmanns@qt.io>
* OutputPane: Use setter for display nameEike Ziller2023-09-182-6/+1
| | | | | Change-Id: I2e89fbd052330c9e7124272c2f2fa81a0db94de9 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Utils etc: More use of Key and Storehjk2023-08-241-1/+3
| | | | | Change-Id: Idd2d70617f775d783aee93a2fe82544ad335a739 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Various Plugins: Add context object into connectionsJarek Kobus2023-08-022-5/+3
| | | | | | Change-Id: I360677bebfef16a3233b3b8177cff6da57ec7c31 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Build: Change plugin json.in files to CMake styleEike Ziller2023-07-251-17/+17
| | | | | | | | | | | | | They were still using variables in qmake style. Directly use CMake variables in the json.in files and remove the no longer needed escaping of quotes. Adds a fatal message if it detects the old style in a .json.in file for easier porting. Change-Id: I8de88d8db2da55781f0e9d72eda03f943723188e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Fix lots of tr.h files not being mentioned in CMakeLists.txtEike Ziller2023-04-011-0/+1
| | | | | | | Change-Id: I63d364ac50d9587339b10a5571870cb9a81c54ee Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* Translations: Change translation context prefix from "::" to "QtC::"Alessandro Portale2023-02-102-2/+2
| | | | | | | lupdate would be confused by translation contexts starting with :: Change-Id: Ie95e73436fd3cafc80a8e89f908efadc747e644c Reviewed-by: hjk <hjk@qt.io>
* SerialTerminal: Tr::trAlessandro Portale2023-01-236-22/+41
| | | | | Change-Id: Iac630d03a27eb1599485a9b8044d794fc66c7bb2 Reviewed-by: hjk <hjk@qt.io>
* Use simpler Plugin::initialize() when feasiblehjk2023-01-202-7/+2
| | | | | Change-Id: I567965d266f20526bda9f823e31a04b354d53fb1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-0613-13/+13
| | | | | | | | | | | | | | | 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>
* CMake build: Use version-less Qt targetsEike Ziller2023-01-051-2/+2
| | | | | | | | | Since we do not support Qt < 5.15 anymore, and as a first step for getting rid of our special FindQt5.cmake. Change-Id: Icc5dbaf9b0a3a622b1f609ff114b9decb6d2856c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Port from qAsConst() to std::as_const()Marc Mutz2022-10-071-1/+1
| | | | | | | | | | | | | | We've been requiring C++17 since Qt 6.0, and our qAsConst use finally starts to bother us (QTBUG-99313), so time to port away from it now. Since qAsConst has exactly the same semantics as std::as_const (down to rvalue treatment, constexpr'ness and noexcept'ness), there's really nothing more to it than a global search-and-replace. Task-number: QTBUG-99313 Change-Id: I88edd91395849574436299b8badda21bb93bea39 Reviewed-by: hjk <hjk@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-2613-312/+26
| | | | | | | | | 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>
* Drop Qt5: Various plugins: Get rid of QOverloadJarek Kobus2022-07-201-3/+3
| | | | | Change-Id: I4913044f8897fd3449dbb537e4af6785eb3ad447 Reviewed-by: hjk <hjk@qt.io>
* Remove qmake build filesEike Ziller2022-01-202-29/+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 <hjk@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Core: De-pure IOutputPane::visibilityChanged()Orgad Shaneh2020-10-092-6/+0
| | | | | | | | Most implementations are empty. Change-Id: I811cacfc2918c8b2803798c4f5d3dabc7d60ccd1 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: hjk <hjk@qt.io>
* Core/Utils: Migrate further to Utils::Idhjk2020-07-061-1/+1
| | | | | | | The coreplugin/id.h header is kept for downstream for now. Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Output panes: Do not allocate extra standard formattersChristian Kandeler2020-03-203-11/+3
| | | | | | | | The OutputWindow base class has a functioning default formatter these days. Change-Id: I0a75d0a081cdd2cfdd913388419483df836a53e9 Reviewed-by: hjk <hjk@qt.io>
* Remove the limitation that output formatters have to be exclusiveChristian Kandeler2020-03-201-1/+1
| | | | | | | | | | | | Introduce an aggregating output formatter that forwards its input to a sub-formatter that feels responsible for it, or otherwise lets the base class handle it. Our output panes now use such an aggregating formatter. In particular, this means that in the future, we won't have to stuff all run control output formatting into the Qt output formatter anymore. Change-Id: I5498f200a61db10ccff3ec8974c6825da7f7072d Reviewed-by: hjk <hjk@qt.io>
* Provide an empty default IPlugin::extensionsInitialized()hjk2020-02-072-5/+0
| | | | | | | And remove all empy re-implementations. Change-Id: I19f0b4e55c042c96693ecb89766f97f0a97b54ae Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Add a non-toolbar variant of the "RELOAD" iconAlessandro Portale2020-02-071-1/+1
| | | | | | | | New icon is: Utils::Icons::RELOAD. And the toolbar variant is now Utils::Icons::RELOAD_TOOLBAR. Change-Id: I811d83c7340a717968430ac1ce4a5c708c8ddcf9 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Deduplicate calls for obtaining model indexOrgad Shaneh2020-01-031-2/+4
| | | | | Change-Id: I799742a06ce592ab935ee0609d5930a7d26a44e1 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* SerialTerminal: Some style fixesAndre Hartmann2019-09-112-7/+6
| | | | | Change-Id: I7415b613493540b250e1e5fba792a76c8e2d6b30 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* SerialTerminal: Fix sign conversion warningAndre Hartmann2019-09-111-1/+1
| | | | | Change-Id: I503f9e9d556aa58807b552d0696fcd311ec5cf79 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Remove usages of deprecated APIs of QLayoutSona Kurazyan2019-09-021-2/+2
| | | | | | | | | | Replaced: QLayout::setMargin() -> QLayout::setContentsMargins() QLayout::margin() -> QLayout::getContentsMargins() Task-number: QTBUG-76491 Change-Id: If28ef6910b3afe5d04e4746b74f9362a3e3b3c8e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Qt Creator CMake portCristian Adam2019-05-171-0/+13
| | | | | | | | | | | | | | Based on Tobias Hunger's work from a few months ago. The CMake configuration needs libclang and Qt paths specified as CMAKE_PREFIX_PATH. Auto tests are run with "ctest". At the moment the pass rate is 87%. Change-Id: Iba98e39bf22077d52706dce6c85986be67a6eab0 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove a couple of "setAutoRaise(true)" for toolbar buttonsAlessandro Portale2019-04-291-4/+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 <eike.ziller@qt.io>
* IOutputPane: Refactor zoom function into base classAndre Hartmann2019-04-161-1/+1
| | | | | | | | | Try to make zoom and font handling in the panes more similar and put common stuff into IOutputPane. Change-Id: I59c38c5eecbf67b7ca6c9d84a6f61b1292a787df Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Replace static_casts by QOverload where possiblehjk2019-02-261-3/+3
| | | | | | | | | Mainly to get rid of the QProcess::finished deprecation warning. Also adjust coding style in the surrounding connects when needed. Change-Id: I12f9b248c7974b892c4a069356e578e80f8c59e9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* SerialTerminal: ModernizeAlessandro Portale2018-11-256-25/+27
| | | | | | | modernize-* Change-Id: If7b19d7c560ecda5f6e519d88b7eab46d4eabccf Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Merge remote-tracking branch 'origin/4.8'Eike Ziller2018-11-198-2/+45
|\ | | | | | | | | | | | | Conflicts: src/plugins/winrt/winrtdevicefactory.cpp Change-Id: I33b8697e2ebf2bea051d7f1144449e0743ee16a5
| * SerialTerminal: Use monospace fontOrgad Shaneh2018-11-163-1/+13
| | | | | | | | | | | | | | Change-Id: Iea42d55c348959adf57936fe0141c5bd5673efbd Reviewed-by: Benjamin Balga <balga.benjamin@gmail.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
| * SerialTerminal: Save and restore selected port nameOrgad Shaneh2018-11-166-1/+26
| | | | | | | | | | | | | | | | + Populate serial ports on startup. Change-Id: Ie7216bb09ba1ffbb0036019cb4974a14119fc55f Reviewed-by: Benjamin Balga <balga.benjamin@gmail.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
| * SerialTerminal: Apply line ending to current paneBenjamin Balga2018-11-161-0/+5
| | | | | | | | | | | | Change-Id: Ib9365ace637d7e7c44347c7319315717a5f8b9b6 Reviewed-by: Benjamin Balga <balga.benjamin@gmail.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
| * SerialTerminal: Select text in input line after each commandOrgad Shaneh2018-11-121-0/+1
| | | | | | | | | | | | | | | | Makes it easier to type a different command. Change-Id: Ica152575f2f5130a8f2da75379403841aba89176 Reviewed-by: Benjamin Balga <balga.benjamin@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* | SerialTerminal: Show error string on connection failureOrgad Shaneh2018-11-121-2/+5
|/ | | | | | Change-Id: Ie951d9598358ef87ea50d6b748b1a88d3ba5431d Reviewed-by: Benjamin Balga <balga.benjamin@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* Avoid enabling all message types by defaultChristian Stenger2018-11-062-2/+2
| | | | | | | | | | | Passing no QtMsgType parameter ends up in enabling all message types by default. Follow the common pattern of only enabling the warnings by default. Change-Id: Ic7ec0420089c95f716a86feb9791d9cb13f4dd90 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove a few redundant occurrences of 'virtual' and 'override'Alessandro Portale2018-06-181-2/+2
| | | | | | | | | | | warning: 'virtual' is redundant since the function is already declared 'override' [modernize-use-override] warning: 'override' is redundant since the function is already declared 'final' [modernize-use-override] Change-Id: I9036a0dc88ed70c4f6e37b916bb24ff65074863d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove some obsolete code inside QT_VERSION_CHECK sectionsAlessandro Portale2018-04-271-7/+0
| | | | | | | With Qt 5.9 as minimal build version, we don't need to handle 5.7 or 5.8 Change-Id: Ie1eed95ab46364452b0633f78bebc565a4a63f4a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Purge asConstOrgad Shaneh2018-04-091-3/+1
| | | | | | | | Replace by qAsConst. Change-Id: I3301366f73c066c86f08df7188d70dc3b613c55c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Fix build with namespaced QtChristian Stenger2018-03-141-0/+2
| | | | | Change-Id: If5675920a5e4020a8a21e103eed6613475f709b5 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* SerialTerminal: Add qbs project fileChristian Kandeler2018-01-311-0/+26
| | | | | Change-Id: Ic9b65d09424f0f28f58181d3da526127800c4d45 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* SerialTerminal: Fix compile for Qt less than 5.8Christian Stenger2018-01-311-1/+6
| | | | | Change-Id: Icaa48d92d75bdd669bc6e4184568bfcf92cc768c Reviewed-by: André Hartmann <aha_1980@gmx.de>
* Plugins: new serial terminal pluginBenjamin Balga2018-01-3016-0/+2100
Plugin adding serial terminals in the output pane. Change-Id: I75d0f69f8d90268ff774e4eae30e36eda022d3aa Reviewed-by: hjk <hjk@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>