summaryrefslogtreecommitdiffstats
path: root/examples/serialport
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated QTextStream operators from examplesv5.15.0-beta4Topi Reinio2020-04-067-39/+49
| | | | | | | | Use '\n' instead. Task-number: QTBUG-82532 Change-Id: I97aec4076bd46f23644099158f346a6ca32a4a0e Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Doc: Fix documentation warningsTopi Reinio2019-11-111-1/+1
| | | | | | | | | | | | | | The header file for QWinOverlappedIoNotifier is not available when building on non-Windows platform - as the class is \internal anyway, suppress the Clang-parser warnings by marking also the member functions as \internal. Remove a link to example file page terminal/console.cpp, as QDoc no longer treats these files as linkable targets. Fixes: QTBUG-79809 Change-Id: Ic3bc33c1c27bc234513fe6977877116ed16c22eb Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Merge remote-tracking branch 'origin/5.13' into 5.14Qt Forward Merge Bot2019-08-281-19/+16
|\ | | | | | | Change-Id: Id08dc211c8e10828dfca5d9b3dd2d36fe923a1cc
| * Doc: Fix links to example codeNico Vertriest2019-08-271-19/+16
| | | | | | | | | | | | | | | | - Qdoc doesn't create links to example code anymore - modifying references to example code Change-Id: I7e526b8767f20958b00974c46c3e174ab12d5663 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* | Remove usages of deprecated APIsSona Kurazyan2019-08-053-6/+3
|/ | | | | | | | | | | - Fixed the build with disabled deprecated APIs. - Made the docs for deprecated APIs to compile conditionally, based on the deprecation version. Task-number: QTBUG-76491 Change-Id: I38fbd84254d3d35b2bc208994c9fd70142450ad8 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* qtlite: Skip building examples when configured with no-feature-itemviewsRainer Keller2018-01-125-0/+5
| | | | | | Task-number: QTBUG-53141 Change-Id: I4d54749396ad8981db3649e2eca660ef7e2520cb Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Merge remote-tracking branch 'origin/5.9' into 5.10Liang Qi2017-10-301-0/+5
|\ | | | | | | | | | | | | | | Conflicts: .qmake.conf examples/serialport/blockingmaster/masterthread.cpp Change-Id: I3716089bae99247f98ed02656d4418de5f866c1d
| * Check if the currentPortName is empty on blockingmaster exampleMika Salmela2017-08-301-0/+5
| | | | | | | | | | | | | | | | | | If there isn't serial ports available and the user still press the Start button, the example will crash. This patch adds the check if the currentPortName is empty and throws an error on that case. Change-Id: I7e85f398e2844064fb9b00cecfdf2afa271d7de0 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* | Revamp the Console Enumerator Examplev5.10.0-beta2Denis Shienkov2017-10-121-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | * Update includes to common style. * Split very long lines. * Remove QT_USE_NAMESPACE macro. * Remove QObject::tr() calls. Task-number: QTBUG-60652 Change-Id: I76105da84b8b89e76b723208600604bca6edd8a5 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Revamp the Blocking Master ExampleDenis Shienkov2017-10-065-121/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use the 'const' keywords more. * Split very long lines. * Use the 'm_' prefixes for all class members. * Use the QOverload in signal/slot casting. * Use more member class initializations. * Remove QT_USE_NAMESPACE macro. * Use from(to)Utf8 instead of from(to)Local8Bit. Task-number: QTBUG-60652 Change-Id: I5ef9916cc1e6371dde97154f5f5683f85bc02e96 Reviewed-by: André Hartmann <aha_1980@gmx.de>
* | Revamp the Blocking Slave ExampleDenis Shienkov2017-10-065-108/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use the 'const' keywords more. * Split very long lines. * Use the 'm_' prefixes for all class members. * Use the QOverload in signal/slot casting. * Use more member class initializations. * Remove QT_USE_NAMESPACE macro. * Use from(to)Utf8 instead of from(to)Local8Bit. Task-number: QTBUG-60652 Change-Id: I64bfaf93672dc69f4d10bcaaa0c1c6dd87267d3e Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Revamp the Console Asynchronous Reader ExampleDenis Shienkov2017-10-053-38/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use the 'const' keywords more. * Split very long lines. * Remove QT_USE_NAMESPACE macro. * Update includes to common style. * Use more member class initializations. * Remove empy dtor. Task-number: QTBUG-60652 Change-Id: I9cd0e010f2489993141ed4e24557e492201c98b6 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Revamp the Console Asynchronous Writer ExampleDenis Shienkov2017-10-053-45/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use the 'const' keywords more. * Split very long lines. * Remove QT_USE_NAMESPACE macro. * Update includes to common style. * Use more member class initializations. * Remove empy dtor. Task-number: QTBUG-60652 Change-Id: Ia9b108ad9fd65d55dd88e2d6c1e3ee36830abb6e Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Revamp the Console Synchronous Reader ExampleDenis Shienkov2017-10-051-14/+18
| | | | | | | | | | | | | | | | | | | | | | | | * Use the 'const' keywords more. * Split very long lines. * Remove QT_USE_NAMESPACE macro. * Update includes to common style. Task-number: QTBUG-60652 Change-Id: I427f778f8005ea5766c0e6035c3996f6a01246ba Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Revamp the Console Synchronous Writer ExampleDenis Shienkov2017-10-051-18/+28
| | | | | | | | | | | | | | | | | | | | | | | | * Use the 'const' keywords more. * Split very long lines. * Remove QT_USE_NAMESPACE macro. * Update includes to common style. Task-number: QTBUG-60652 Change-Id: I920ff6f7de9cede2e761cb629ab89945e70254d9 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Revamp the Non-Blocking Master ExampleDenis Shienkov2017-10-053-76/+72
| | | | | | | | | | | | | | | | | | | | | | | | * Use the 'm_' prefixes for all class members. * Use more member class initializations. * Remove QT_USE_NAMESPACE macro. * Use from(to)Utf8 instead of from(to)Local8Bit. Task-number: QTBUG-60652 Change-Id: Ibdc607653d8727b88d4e041d0a9eb0a96e3289d7 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Revamp the Non-Blocking Slave ExampleDenis Shienkov2017-10-053-79/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | * Use the 'm_' prefixes for all class members. * Use the QOverload in signal/slot casting. * Use more member class initializations. * Remove QT_USE_NAMESPACE macro. * Use from(to)Utf8 instead of from(to)Local8Bit. Task-number: QTBUG-60652 Change-Id: I3f7f078aad6d86f56feb6a3dfa78bf158ee0ee63 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Revamp the Enumerator ExampleDenis Shienkov2017-10-051-5/+3
| | | | | | | | | | | | | | | | | | | | * Update includes to common style. * Remove QT_USE_NAMESPACE macro. Task-number: QTBUG-60652 Change-Id: Ic8860e7e6d0fa320e251e02f3d294845c662a8d0 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Revamp the Terminal ExampleDenis Shienkov2017-10-057-147/+141
| | | | | | | | | | | | | | | | | | | | | | | | * Use the 'm_' prefixes for all class members. * Use the QOverload in signal/slot casting. * Use more member class initializations. * Remove QT_USE_NAMESPACE macro. Task-number: QTBUG-60652 Change-Id: I1a2000de2f9a5152de31ec896659b6721aeb3a9a Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Terminal Example: Modernizev5.10.0-beta1Andre Hartmann2017-09-184-22/+12
|/ | | | | | | | | | * Replace Q_DECL_OVERRIDE with override * Init all POD members * Update includes to common style and remove unneded ones Task-number: QTBUG-60652 Change-Id: Ibb5c0347bd14cfc0386f39059498edd384a7200c Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Fix connect statement in terminal sampleSamuel Gaist2016-12-061-1/+1
| | | | | | | | This patch corrects the connect statement used to show the settings dialog. Change-Id: I6318e18f7a281d8ddb118ef1f1d2d18e86df9b22 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Replace remaining 0 to nullptr in the examplesDenis Shienkov2016-06-2411-11/+11
| | | | | | | Change-Id: If867000fe1101c58bc9d48e3794536e46cde6fec Reviewed-by: Anton Kudryavtsev <a.kudryavtsev@netris.ru> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Add remaining 'Q_DECL_OVERRIDE' to the examplesDenis Shienkov2016-06-233-6/+6
| | | | | | | Change-Id: Ib9590b862413e66189b9f2fde9297af374981b4d Reviewed-by: Anton Kudryavtsev <a.kudryavtsev@netris.ru> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Add 'explicit' keyword where possible to the examplesDenis Shienkov2016-06-208-8/+8
| | | | | | | | Change-Id: I7338288caf0d3fcb1ecd52d0e6724aa51c108505 Reviewed-by: Anton Kudryavtsev <a.kudryavtsev@netris.ru> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Use auto in more casesDenis Shienkov2016-06-155-7/+7
| | | | | | | Change-Id: Id4fd74d4d45b28ddc60de6308386728a0eda8bb7 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Replace remaining foreach with range-based forDenis Shienkov2016-06-152-2/+4
| | | | | | Change-Id: I1fe4be17d8e998ba25ecb6dde53f487eacd2b128 Reviewed-by: Anton Kudryavtsev <a.kudryavtsev@netris.ru> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-05-1912-2/+34
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I6a4c3e446633e6f142b87c268096b1bdc1598a62
| * enable build of master and slave examplesOswald Buddenhagen2016-04-281-1/+1
| | | | | | | | | | Change-Id: I0680e485a0c3ecde410a090204f192ece66fa6c4 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
| * add example installsOswald Buddenhagen2016-04-2811-0/+33
| | | | | | | | | | Change-Id: Iadcc0afaae8a54f10a587f0b2f37db128d7ea02d Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
| * remove most pointless CONFIG+=orderedOswald Buddenhagen2016-04-281-1/+0
| | | | | | | | | | Change-Id: I3d0c3cc192c3da07dfcd59f64a7c61864fe20ad8 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* | Replace 'Q_FOREACH' with the range-based 'for'Denis Shienkov2016-05-135-7/+11
| | | | | | | | | | | | Change-Id: I057267982ac946ce1ec863a79120cd21cd563c4b Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* | Unify license header usage.Antti Kokko2016-02-0235-535/+1130
| | | | | | | | | | | | | | | | | | Updated license headers to use new BSD header instead of LGPL3 one (in those files which will be under BSD) Change-Id: Ifd29dab2fcb32b7f7f37430f59e9dc50d1fc8766 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* | Unify license header usageAntti Kokko2016-02-029-45/+45
|/ | | | | | | | Updated FDL license. Change-Id: I1165e025a7f9f3628d0bc25553b48d27384413ca Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Doc: minor link issueNico Vertriest2015-10-131-2/+2
| | | | | | Change-Id: I3dc7dcd60e66b36f0e9913760e80df798e52da80 Task-number: QTBUG-43810 Reviewed-by: Martin Smith <martin.smith@digia.com>
* Use the new signal/slot syntax everywherev5.6.0-alpha1Denis Shienkov2015-09-028-66/+52
| | | | | Change-Id: Ia9868d010106abbfeb8f8d24e84adf37de879991 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Use the permanent status message in Terminal exampleDenis Shienkov2015-08-032-10/+24
| | | | | | | | | ... because earlier was used the temporal message which disappeared in case of moving of the mouse cursor on the menu. Change-Id: I7a7cb10120ffdd242a76e91ec08554db69e0f959 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Merge remote-tracking branch 'origin/5.4' into 5.5Frederik Gladhorn2015-02-256-72/+46
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf src/serialport/qserialport_unix.cpp src/serialport/qserialport_unix_p.h src/serialport/qserialport_win.cpp src/serialport/qserialport_win_p.h src/serialport/qserialport_wince.cpp src/serialport/qserialport_wince_p.h Change-Id: Ibb917652b132e66fbb90f437bf762c1094911dc0
| * Doc: Fix the examples pageTopi Reinio2015-01-202-47/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The group page listing all the examples defined also a \page name, which caused the generated page to contain no examples. Also correct the group name for Command Line Enumerator Example, and move the qtserialport-examples.qdoc to the correct location. Change-Id: I6ebfbe1c49d2a44e4ed631f22027659ba43ceb8d Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
| * Do not close closed device in Terminal exampleDenis Shienkov2014-12-041-1/+2
| | | | | | | | | | | | | | | | | | | | When opening is fails, the QSP himself close a device. Thus, we do not need to close device in Terminal example again, because it caused emmiting of the QSP::NotOpenError and to showing of additional messagebox. Change-Id: Id8aa3f3b835fd7d4187bdf83c1d6584d5fd541f7 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
| * Add scroll area to Enumerator exampleDenis Shienkov2014-12-011-4/+8
| | | | | | | | | | | | | | | | | | When a system has many serial ports, the last of them are not visible on the screen, because a widget has a big height. So, it is reasonable to add scrolling of all serial ports info. Change-Id: Ic13b58fba38a17d6f5142476bca501a0d26ec76d Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
| * Translate serial port settings of Terminal exampleDenis Shienkov2014-12-011-11/+11
| | | | | | | | | | Change-Id: Ica127147999eaecc3d03189cfa9cd893115b846c Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
| * Allow to setup custom device in Terminal exampleDenis Shienkov2014-12-012-10/+25
| | | | | | | | | | | | | | | | | | Terminal example allows to select only available devices which are received from QSPI. Now it is possible to enter and to open of any custom device. Change-Id: I83172a346cb5dc0e20c217957133e9e3e506d8a4 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
* | Update copyright headersJani Heikkinen2015-02-1345-270/+270
| | | | | | | | | | | | | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I35f551de8408a2eb6a0f39df1f09d90c8084a7c0 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* | Drop the Qt4 supportDenis Shienkov2014-10-2310-55/+10
|/ | | | | | | | Now QtSerialPort can be built for Qt5 only. QtSerialPort for Qt4 is developed in a separate branch. Change-Id: Iaaa95fb7cb0aedbfc1b17ed11717fff8f9c126a0 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
* Update license headers and add new license filesAntti Kokko2014-09-0935-630/+350
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: I08685205169cdd4b49a651ed98f36ba1e6c1bb29 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
* Merge remote-tracking branch 'origin/5.3' into 5.4Frederik Gladhorn2014-08-1210-47/+76
|\ | | | | | | | | | | | | Conflicts: examples/serialport/examples.qdoc Change-Id: If79f2f140e72f0a499f8e61e3897848f454a5042
| * Doc: Edited example documentation.Jerome Pasion2014-07-1410-48/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | -added information about how to run the example by including a file from qtbase/doc/global -edited summary sections -added \brief. -removed image captions. Our Qt 5 CSS files don't handle them. Task-number: QTBUG-33597 Change-Id: If3293aa9d98b662f20af2af7030b0ab0fb1e8401 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
* | Doc: rename the end file for serialport docsThiago Macieira2014-07-251-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This page has been showing up in the master Qt docs as http://qt-project.org/doc/qt-5/examples.html, which is way too generic. The current practice is to add the module: \page qt3d-examples.html \page qt3d-examples-placeholder.html \page examples-graphicsview.html \page examples-graphicsview.html \page bluetooth-examples.html \page nfc-examples.html \page qtquick-codesamples.html \page qtexamplesandtutorials.html \page examples-layouts.html \page examples-draganddrop.html \page examples-threadandconcurrent.html \page examples-sql.html \page examples-xml.html \page examples-statemachine.html \page examples-animation.html \page examples-gestures.html \page examples-activeqt.html \page qdeclarativeexamples.html \page declarative-cppextensions-reference.html \page declarative-cppextensions-qgraphicslayouts.html \page examples-serialport.html \page qtwebkitexamples-index.html Change-Id: Ib272f6380cb694ad4acfc24a248266805cef05a8 Reviewed-by: Martin Smith <martin.smith@digia.com>
* Fix the serial number display in the terminal exampleDenis Shienkov2014-04-301-3/+7
| | | | | | | | | | | | The display code was left out in commit 959775c41683033adbd99faab7e3d70e0009c143. Tested using FTDI device on Windows 8 with Qt5 and then on Windows 7 with Qt4. Change-Id: I9f665b2826ba03877346b25a569ca89b6a3dc4af Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
* Remove the noisy comments from the terminal exampleLaszlo Papp2014-04-022-15/+0
| | | | | | | | | | | | | | If anything, this should be made clear in a different way, like proper variable names, inline convenience functions for naming, example documentation extension, and so on. This is also consistent with the other examples not using "water can" comments. However, these comments mostly add noise to the code without much benefit as far as I can tell. Change-Id: I9c4121d91ca2671d44c08cf986232422f136a785 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>