Linux: Added enumeration of Motorola IMX serial ports

For Embedded "Freescale i.MX Linux" platform is added the filter for the
Motorola IMX serial ports.

These serial ports has names like "/dev/ttymxc*", see kernel sources:
* http://lxr.free-electrons.com/source/drivers/serial/imx.c?v=2.6.31

Task-number: QTBUG-32563

Change-Id: I97b33cdbc8f1a8ff72a171e52ddc10cc0f53b4a2
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Add changes-5.1.1 file

Change-Id: Ie9cb797b15859da5e0a4dcfeba6736c6ab3245bf
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Do not set an error for timeout as there is no timeout error handled yet

This will need a proper extension later with a dedicated timeout error for 5.2
which will follow this change.

See the following QIODevice subclasses for details to get a rough idea:

http://doc-snapshot.qt-project.org/qt5-stable/qtcore/qprocess.html#ProcessError-enum
http://qt-project.org/doc/qt-5.0/qtcore/qfiledevice.html#FileError-enum
http://doc-snapshot.qt-project.org/qt5-stable/qtnetwork/qabstractsocket.html#SocketError-enum

This will also mean, we need to duplicate the qt_safe_select and
qt_core_unix.cpp etc files as qt_safe_select is exported, but only from a
private header. Anyway, more explain to come for that change.

Task-number: QTBUG-32016
Change-Id: If10cd7b5575636f0f7ee3368258e80bd4766ff3a
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Bump MODULE_VERSION to 5.1.2

Change-Id: Iecde0c3af8be02e73ba993bfb565dbba2a75ffa2
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Do not use the const specifier for Q_D inside non-const methods

Change-Id: Ife35ae9f83e63f14f6eb56351454848933e9f3db
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Catch only the WinEventAct for the event notifier for process completion

This is necessary to filter out events like ThreadChange. The documentation
writes "The object is moved to another thread. This is the last event sent to
this object in the previous thread.". See the following url for details:

http://qt-project.org/doc/qt-5.0/qtcore/qevent.html#Type-enum

Change-Id: I091a4c1fe7f64337835e8ee1492c47cc73322fdc
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Windows: Add PCI vendor and device identifier detection

The PCI identifiers are different to the USB identifiers, as in:

* USB: VID_, PID_
* PCI: VEN_, DEV_

For more info see MSDN:

* USB: http://msdn.microsoft.com/en-us/library/windows/hardware/ff553356%28v=vs.85%29.aspx
* PCI: http://msdn.microsoft.com/en-us/library/windows/hardware/ff546262%28v=vs.85%29.aspx

Therefore, the method availablePorts() skipped processing of PCI prefixes.

Now, problem was resolved.

Task-number: QTBUG-32018
Change-Id: I098a35a170043b9c58b74cb278e4daff34b1f84e
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Merge remote-tracking branch 'origin/release' into stable

Change-Id: Icf3f1dd9f471f33d129a74053c0599c6013170d7
Put Q_DECLARE_PRIVATE in the beginning of the class

This seems to be a usual practice by the majority of the Qt classes. There are
a few examples against it, but that is the minority.

Change-Id: I92f47f283a6cd279bc978761cb1ee375a514eeba
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Remove the unnecessary Q_DECLARE_PUBLIC from the data class

Change-Id: I8293dfc6d492bac59fa830d499902cabdc8d95dd
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Remove the const modifier from the pinoutSignals internal methods

Logically, these methods set the error on their member, the public QSerialPort
class, hence these are not const methods similarly to the public variant.

Change-Id: I1580cf371556c820ce8e7df43121bc2800b08b40
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Eliminate the "q_ptr->" call by using Q_Q(QSerialPort)

Unfortunately, the q_ptr data member cannot yet be deleted from the internal
data class because QIODevicePrivate would need to be inherited then. That is not
a simple change considering the Qt4 support. Hence, that part of the logic is
put on hold, but can be expected in an upcoming change at some point, soon.

Change-Id: Ic8ba9621dd647f4afa1b91d01c858c836d1cc0c8
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Merge branch 'stable' into dev

Conflicts:
	.qmake.conf

Change-Id: Ie3c806147c8de043834f9a74b42a768e265d4529