Fix QSPI::isNull()
authorDenis Shienkov <denis.shienkov@gmail.com>
Fri, 21 Nov 2014 13:01:30 +0000 (16:01 +0300)
committerDenis Shienkov <denis.shienkov@gmail.com>
Fri, 21 Nov 2014 18:00:34 +0000 (19:00 +0100)
commit7f8d17b6fe903e0603c8e8fea9bdd7eb7fe66f34
treede3dc43e38507ae3a163f082627425a38d54a68e
parent7a6da7878566dc18acb540bd29f7e11fa7e3ff66
Fix QSPI::isNull()

The method QSPI::isNull() should return false when QSPI is empty.

Tested on Winsows 8 and Linux with on-board, virtual and USB serial
ports using Qt5 and then Qt4.

Task-number: QTBUG-41262
Change-Id: Ic9e0afc5549311283aef7ec2ed841f5e418b7edf
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
src/serialport/qserialportinfo.cpp
src/serialport/qserialportinfo.h
src/serialport/qserialportinfo_mac.cpp
src/serialport/qserialportinfo_unix.cpp
src/serialport/qserialportinfo_win.cpp
src/serialport/qserialportinfo_wince.cpp
tests/auto/auto.pro
tests/auto/qserialportinfo/qserialportinfo.pro [new file with mode: 0644]
tests/auto/qserialportinfo/tst_qserialportinfo.cpp [new file with mode: 0644]