summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace the deprecated commands (\i, \o, \bold) with the new onesLaszlo Papp2013-02-284-17/+17
| | | | | | | | See the following page for details: http://doc-snapshot.qt-project.org/qt5-stable/qdoc/27-qdoc-commands-alphabetical.html Change-Id: I405deea5cf065075907ac7830e92bb064a1c72d0 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Do not add "core" to the QT variable as it is added by defaultLaszlo Papp2013-02-261-1/+1
| | | | | | Change-Id: I8d30a47331bdb26f1531d214f5da830eca03d030 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Assign a new method name for the port name setting APILaszlo Papp2013-02-236-6/+6
| | | | | | | | | | | | | | | | | | * This is more intuitive as it is not setting the port with all its settings like baud rate, flow control, stop bits, parity, and so forth, but only the port name. * This will allow in upcoming change to establish a property for the port name along with a port name changed signal to be useful from different threads, QML, and so forth. * Clean up the documentation not to provide internal information to the end users, and also make the text a bit more concise and better readable. * Examples are also changed accordingly, to use the new API. Change-Id: Idbaa8ee2dee17c63fc0278f687ccc231c5ab670f Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Unbreak some examples with custom namespaceLaszlo Papp2013-02-124-0/+16
| | | | | | | | QT_BEGIN/END_NAMESPACE is necessary for forward declaration for sure. Change-Id: I2e3a839218971b9443850e8098d9777652351265 Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Fix the breakage for the terminal example when custom namespace is definedLaszlo Papp2013-02-082-2/+8
| | | | | | | | This is currently causing breakages on the CI machine, but it is a generic issue that can be reproduced by configuring qt with custom namespace. Change-Id: I40340ab1df5e2cc3dd67797a74cebcb09fbfd539 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Remove the QtSerialPort namespace define and hence namespace usageLaszlo Papp2013-02-0714-14/+16
| | | | | | | | | | * This is for following the convention in the Qt Project with the rest. * This fixes examples and tests to build now as all of them are broken due to the regression. Change-Id: I3f4d64d97466520aea621da582a64a0d97e32136 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Fix the license issues to pass the QtQA license testsLaszlo Papp2013-02-065-5/+5
| | | | | | | | | | | The issues were revealed by qtqa/tests/prebuild/license/tst_licenses.pl while trying to put the QtSerialPort under CI. X - Y is an unfortunate workaround, but seems to be necessary for now due to the following change: https://codereview.qt-project.org/#change,14529 Change-Id: I265f1929961705eda9db54386e721f20495c329c Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Unbreak the terminal example compilationLaszlo Papp2013-02-061-5/+1
| | | | | | | | | | | | | | | | This is a workaround, and not a real fix as the whole namespace situation is a mess for now, and has to be discussed with others. The real fix has to wait, but the build has to be working right now off-hand. Also, there is not much point in exposing this global header file for Qt4 either as the usage of the two public classes should be enough along with the deterministic namespace name that will be agreed upon later (i.e. the namespace define will be removed most likely). Tested with Qt5, and the terminal example builds just fine on ArchLinux. Change-Id: I9609afb43997ed20bf9770b517a93121bff84d82 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Refactor certain variable names, remove useless comments and so forthLaszlo Papp2013-02-012-6/+6
| | | | | Change-Id: Id8af629c2b488050b8accd4c552e9b0ebf366e32 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Make the cross Qt4/5 versions experience better with forward headersLaszlo Papp2013-01-3015-15/+15
| | | | | | | | | | This is not a nice way, but quick of getting this feature done. For future reference, we should most likely do something as QtCreator does for instance with "QMAKE_SUBSTITUTES". Change-Id: I3df23ac019552f9586aede336296079109066da1 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Improve terminal example handling of custom baud rate.Thiago A. Correa2013-01-281-2/+3
| | | | | | | | | | This makes the custom baud rate handling independent on the index of the last entry in the QComboBox. Change-Id: I5f0bfa148595e4312a8721a690e87e2fc36906d9 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Make all the file renames and relevant changesLaszlo Papp2013-01-2715-15/+15
| | | | | | | | "git log --follow /path/to/the/file/in/question" can be used, for instance, for the renamed files to get the whole history. Change-Id: I20da087ca88e2c179a6c3232772fa21575e0aa6a Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Change the QtCore reference in the copyright headers to QtSerialPortLaszlo Papp2013-01-2727-27/+27
| | | | | Change-Id: Ic19f6843d32260404f72038cf77aa6f686e7a3ff Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Rename the SerialPort* classes to QSerialPort* including the internals.Laszlo Papp2013-01-2720-102/+102
| | | | | | | | | | | | | | | Unfortunately, the rename has to happen in a separate commit because of the limitations of "git": "git does not track renames of files in history, git only records tree snapshots. It can try to guess whether a change was a rename, or just unrelated removal+addition, when asked. You can help this by making the rename in a different commit from a modification. See man git-log -C and -M" ... so the rename will happen in the next change. Change-Id: Ibe56eba0a0d2c7489db48a6c519d60d3315c00de Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Fix a few documentations issues (namespace and correct module name usage)Laszlo Papp2013-01-271-1/+1
| | | | | | | | | | * Reflect the namespace documentation to the QtSerialPort change. * Module names should be spelled with whitespaces in the documentation according to the following convention: http://qt-project.org/wiki/Spelling_Module_Names_in_Qt_Documentation Change-Id: I504d45140d3f56fda9d4d6cdd272157bac3959d6 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Use the BaudRate enumeration values instead of raw values in the examplesLaszlo Papp2013-01-265-5/+5
| | | | | Change-Id: I4e33c07972e391dc6833872b1c640e565df480ac Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Change the variable names properly for the examples and tests in case of Qt4Laszlo Papp2013-01-267-7/+7
| | | | | Change-Id: I08609cb9c679002262a24b52fc46bbfcabb512d7 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Add the blockingmaster/slave to the examples.qdocLaszlo Papp2013-01-261-0/+2
| | | | | | | | Apparently, this had been mixed when those examples and their documentations were merged in. Change-Id: I94b6a355cc1bee1a910777b7bd8dfd3d40ea09bb Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Change Denis' email address in the copyrights headersLaszlo Papp2013-01-2631-31/+31
| | | | | Change-Id: I8c564f68bb32423957f2171e1c76d8a428f16eb3 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Call the module QtSerialPort instead of QtAddOnSerialPortLaszlo Papp2013-01-2621-21/+21
| | | | | | | | Use the QTSERIALPORT as a term for internal variables as well to remain consistent with the freshly chosen module name. Change-Id: Ia780b105649b39a1eca46702466da5bc31ec5af0 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Move the library and example documentations to the right placesLaszlo Papp2013-01-266-0/+602
| | | | | Change-Id: Ia04d1f576b90ba705471b290b50f7adc2b13d00f Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Change the copyright headers to the Qt Project standard formLaszlo Papp2013-01-2627-653/+653
| | | | | Change-Id: Id6414c91a0bc700734873cd798807868865cd453 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Use "BaudRate" instead of "Rate" and "BaudXXXX" instead of "RateXXXX"Laszlo Papp2013-01-269-37/+37
| | | | | Change-Id: Id5db378b6da89f672cb55fa312e325cd1e9b88ce Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Added documentation for BlockingSlave exampleDenis Shienkov2012-12-202-9/+21
| | | | | | | | Added documentation for BlockingSlave example and added bookmarks, used in documentation to refer to code. Change-Id: Ic60ff4eb46661deed12bcaaee84e5f7647cc4937 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Added serial Master and serial Slave examplesDenis Shienkov2012-12-1311-1/+917
| | | | | | | | Added examples to demonstrate the Signal/Slot approach using the serial interface. Change-Id: I09f451afba67dbac8c357b0aa723460fc8d4b6aa Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Added documentation for BlockingMaster exampleDenis Shienkov2012-12-132-6/+19
| | | | | | | | Added documentation for BlockingMaster example and added bookmarks, used in documentation to reffer to code. Change-Id: I923d27a51d46b17eaf478c0280823c8ce9b7ea3e Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Refactoring for BlockingMaster and BlockingSlave examplesDenis Shienkov2012-12-0512-123/+125
| | | | | | | Renamed classes and methods to a more appropriate in meaning. Change-Id: I69f1ef2fb30f3e207e506fea60eeca3195bf70ed Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Refactoring for BlockingMaster and BlockingSlave examplesDenis Shienkov2012-11-306-14/+14
| | | | | | | | | * Standardized library headers inclusion. * Renamed methods of TransactionThread to a more appropriate in meaning. Change-Id: Ibfe91b3b7723b0454c36a5677fe2dad464d4da13 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Added new examples BlockingMaster and BlockingSlaveDenis Shienkov2012-11-1913-2/+1070
| | | | | | | | | | | These examples show how to work with I/O in a blocking mode without using signals/slots. Note: For these examples, the documentation is not yet done, must be done on future. Change-Id: I0029e8dd43f935629eb77529b2df5bb75d31e091 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Use first() instead of at(0) calls for lists except the imported ringbufferLaszlo Papp2012-11-191-1/+1
| | | | | | Change-Id: Iab98b7146b0d4de542c099162cac11a6408ad9de Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Updating a project tree for compilation fixingDenis Shienkov2012-11-053-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For optimization and build correction for Qt4/Qt5 there was a need for unification and modification of a tree of projects. The previous structure of the project didn't meet the changed requirements for Qt5 that led to errors of build and complication of possibility of correction of errors of build. It is necessary to note the main changes: * Removed not used /modules direcrory with all content, because it is autogenerated. * Moved all contents from /src directory to /src/serialport directory. It was necessary for simplification of the qmake commands at building for Qt5 (in particular, there is no need to fill out a module name since it is the name of directory /serialport). * Changed the exported macro defines Q_ADDON_SERIALPORT_EXPORT to Q_SERIALPORT_EXPORT and QT_ADDON_SERIALPORT_LIB to QT_SERIALPORT_LIB. It was necessary for fixing compilation error for unknown reason on Windows and Qt5 when used MSVC compiler. Checked on Windows and Gnu/Linux, also this patch fixes bug: Task-number: QTPLAYGROUND-5 Change-Id: Idc9ba98115d5961a22ae307c0e4034a56f3223b5 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Unify the "#if (!)defined" handling into "#if(n)def"Laszlo Papp2012-08-061-1/+1
| | | | | Change-Id: I580a62dd52b4151f511042f7a382d9a4c1532fc9 Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Build the UI examples only, if the QtWidgets module is presentLaszlo Papp2012-07-151-1/+6
| | | | | | | | | | | | | | | | This only works nicely with Qt5 because there is no simple way of achieving the "!isEmpty(QT.widgets.name)" feature with the previous major versions. In general, the recommendation is that to depend on modules in the examples that are also the dependency of the library itself. However, that can be an exception made with optional dependencies that the Qt Project accepts. Tested on Linux with Qt5, and this works fine. There were no regressions to the previous operations with Qt4 either. Change-Id: I0d86557bb2a49300bb3bfd0adb94b61b1e7d4cc3 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Establish a command line enumerator example mostly for limited environmentsLaszlo Papp2012-05-303-1/+80
| | | | | | | | | | | | | | | | | | | | | | This is useful in environment where it is not possible or just not handy to run UI examples to present the operation of the core SerialPort and SerialPortInfo classes in the QtSerialPort add-on module. Typical use cases are embedded BSP boards, like PandaBoard, BeagleBoard, Raspberry Pi and so forth. Usually there is a "direct" connection over ssh or the native serial port to those boards how the developer actually builds projects on the board. It would be nice to build the QtSerialPort project in those cases, and then just fire a command line example up. In fact, while testing the QtSerialPort project on Mac, this is also very useful at least to me since I have only limited access to a Mac box. Perhaps, it can be the same with other people as well having access only to a Linux box remotely and so forth. Task-number: QTPLAYGROUND-1 Change-Id: If4681b05904845108ba2c6243b8955927211137c Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* For the Enumerator example a fix the Vendor/Product identifier.Denis Shienkov2012-05-031-2/+2
| | | | | | Change-Id: Ia6be7f509005da188996b35570440ddeee951878 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Add license information to the header and source filesLaszlo Papp2012-05-038-0/+336
| | | | | | | | | | | | | | | | | | Having checked all the current Playground projects. This license selection seems to be the most appropriate according to the other playground project licenses: https://qt.gitorious.org/qtplayground/ In fact, QtSerialPort is the only Playground project which does not have license yet. This patch tries to amend that gap. It is going to provide more trustworthy situation about the usage of the module to commercial customers right away. As for now, it looks a bit undefined what license this project goes for in the end even if it is guessable. Commercial customers (perhaps even hobbyists) would like to make sure they can reuse this library the way, they wish (aka. No GPLvX and so forth). Change-Id: Ia3a4e48a5140696f749df9fb5a8391955afaa637 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* To Terminal example changed the Label caption Vendor/Product IdentifierDenis Shienkov2012-04-281-2/+2
| | | | | | | Change-Id: I2f9fbf58d4b56729bc2dbe91f4b0e67ea00c374a Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Do not use the not preferred and actually unneccessary static_cast<int>Laszlo Papp2012-04-261-19/+19
| | | | | Change-Id: I6cfcb40016851f6b08f41f7949162fe10665234e Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Use the enumeration values instead of hard coded integer numbersLaszlo Papp2012-04-261-4/+4
| | | | | Change-Id: I24d6553410c8ccc60ef3bc1694b4f0850c03731b Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Use camelCase for flowControl just like at the other placesLaszlo Papp2012-04-133-3/+3
| | | | | | Change-Id: I29c1ec0a44e9631aba5d802428a67e7870f2dfc8 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Added the Terminal Example description.Denis Shienkov2012-04-121-2/+16
| | | | | | Change-Id: I2b8c80619cf13a61a01b5a4a15b5b4d83ed6c898 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Add a "Quit" action for closing the terminal exampleLaszlo Papp2012-04-084-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Meanwhile, it is possible to close the application with window managers in Desktop environment like KDE and so forth, it is sadly not that simple with tiling window managers, like "Ratpoison". I have been using "Ratposion" for almost 5-6 years by now. I have switched to this after KDE3 when KDE4 came out. In such window managers, you do not have a "Top Bar" with the quit and other icons, just a bare window about the content. Hence, I would like to propose having a "quit" action for the application for make our lives simpler. My workaround is sending a SIGKILL for such applications which is possible, but surely not the nicest solution. :-) The icon is adopted from the Oxygen Icons project that has also being used by many KDE applications. In fact, this icon is pretty much the defacto standard for the KDE applications. The icon size has just been chosen according to the existing icon sizes inside the "$projectroot/examples/terminal/images" folder. I am not sure we need size 128x128 in there, but I have put that size for consistency with the rest. That probably does not hurt. I do not have a rock solid vision about the placement of the action, but I have currently put this into the first menu bar entry "Calls" with a separator, of course, after the "Disconnect" action. I do not think we should establish a separate menu bar entry just for this very action. I think it is reasonable this way to have the "Quit" action in the first entry, until the need arises to change this significantly in the near future that I doubt at this point. Change-Id: I9f2639d4200e9a300deb872c8dbcf42d9dab54af Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Use open/closeSerialPort terms instead of simply open/closeLaszlo Papp2012-04-082-6/+6
| | | | | | | | | | | | | | | | | | | | | | | The reason behind is that, the close() method is already an existing one for the QMainWindow. See the documentation here for further details: http://qt-project.org/doc/qt-4.8/qwidget.html#close I would like to use that method with a "Quit" action for closing the application in the near future. See my next patch about the details of that feature. Hence, renaming is a reasonable step in my opinion requiring minor effort. I thought, if I am at renaming the implemented "close()" method to "closeSerialPort()", I could just well rename the implemented "open()" method to "openSerialPort()" as well for the sake of consistency even if there is no "open" method for the QMainWindow class. The relevant connect lines are also being modified obviously. I have tested the connect and disconnect actions after this minor modification, and they work just fine with my modem connected to the serial port via an usb-serial converter (PL2303). Change-Id: Ib5ee315e244cc5fa77210725b3548217ac12ca27 Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* To Terminal adds the ability to input custom baud rate.Denis Shienkov2012-04-082-3/+31
| | | | | Change-Id: I7947ebf437a8731d68f47966c6f21cccb03d3825 Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Assign shortcuts to most of the actions availableLaszlo Papp2012-04-071-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It can be handy for certain people to use shortcuts for actions like in other Desktop applications without too intrusive changes. Selections: * Connect: Ctrl+O -> Essentially because this shortcut is frequently used in Desktop applications to open up a file. We do not open up files here, but the serial port. Also, "o" is the second letter in the word "Connect". "C" might be a poor choice since many words begin and contain that letter (Calls, Connect, Configure and the like) * Disconnect: Ctrl+D -> Essentially because this shortcut is frequently used in terminal applications to close a session (ie. back from "root" to "user"). It is also frequently used to close a process like an (for instance script language) interpreter. In addition, this is the beginning letter of the "Disconnect" word. * Configure: Alt+C -> Essentially because this shortcut is the most frequently used for this action in other applications. We have actually made it default inside our KDE Framework. It is pretty much the defacto standard for KDE applications, and for many pure Qt applications as well. 'C' is also the beginning letter of the word for this action. * Clear: Alt+L -> Essentially because "Alt/Ctrl+C" would be confusing with "Configure" and also with the generic "Copy" action. It is probably not the best choice to accumulate the 'C' shortcut usage. "Ctrl+R" is widely used in applications to refresh the window like browser. Hence, my decision is to use "Alt+L" for this action. It is also a bit more difficult to type than "Alt+R" meaning that it is less risky to clear the characters accidentally. This can be reconsidered later, if the need arises. This is the hard selection out of the all available. The other actions are straight-forward. * About: Alt+A -> Essentially because this shortcut is the most frequently used for this action in other applications. We have actually made it default inside our KDE Framework. It is pretty much the defacto standard for KDE applications, and for many pure Qt applications as well. 'A' is also the beginning letter of the word for this action. The relevant ampersand management is also being added so that the shorcut character is underlined for the relevant menubar entry for the action in question. Change-Id: I64c206ff25f67cd5b7fb24528db8e1ae78e3d24b Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* In example of Terminal fixed displayed vendor and product identifiersDenis Shienkov2012-04-072-3/+6
| | | | | | Change-Id: I7199c283142125af5e162373b6b146d9ee648ba9 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* In Terminal fixed incorrect behavior after a failed options setup.Denis Shienkov2012-04-071-0/+1
| | | | | | | | | After an unsuccessful options setup, the port is not closed automatically, which led to the impossibility of its re-opening. Change-Id: I8b613f78d8af6533d0972022c755272f6dc5015c Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Show "Data bits: 8" in the settings of the terminal example by defaultLaszlo Papp2012-04-061-0/+1
| | | | | | | | | | | | It is probably better to show this value in the settings for the data bits since it is probably the most common usage out there. This way 8N1 would be available by default. Therefore, in most cases while testing or debugging the qtserialport codebase itself, it is not even needed to go to the settings, just press connect. Change-Id: I2cbe2e364ef488693c5687edf7658aa722e43a78 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Make the terminal example work with Qt4 and Qt5 as wellLaszlo Papp2012-04-057-8/+14
| | | | | | | | | | | | * Do not use QtWidgets module name in the include statement, otherwise it needs conditional Qt4/Qt5 including. * Check against the availability of QT serialport, and if not present, include the Qt4 style serialport.prf file which takes care of the INCLUDEPATH and LIBS variables Change-Id: Ia24b0d38ca8508893b45130deafbc4195b020c82 Reviewed-by: Denis Shienkov <scapig@yandex.ru>
* Make the enumerator example work with Qt4 and Qt5 as wellLaszlo Papp2012-04-052-7/+10
| | | | | | | | | | | | * Do not use QtWidgets module name in the include statement, otherwise it needs conditional Qt4/Qt5 including. * Check against the availability of QT serialport, and if not present, include the Qt4 style serialport.prf file which takes care of the INCLUDEPATH and LIBS variables Change-Id: I4cf174324ce4382cbfb2eff6c9624142d74cb53a Reviewed-by: Denis Shienkov <scapig@yandex.ru>