diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2016-02-16 12:54:08 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2016-02-16 15:22:15 +0000 |
commit | 03bff71737ab2732561586e966ab3966a42468d1 (patch) | |
tree | 6e52221f0cbe2c73c1da435f962ab3c53683946e /src/serialport/qserialportinfo.cpp | |
parent | 26ea44e3b45de4a33515c826f6f5c9aa501f57fd (diff) | |
download | qtserialport-03bff71737ab2732561586e966ab3966a42468d1.tar.gz |
Move QSPI::standardBaudRates() in one place
Currently we do not need in multiple implementations of
this method, and can move it to the qserialportinfo.cpp
file.
Change-Id: I9d27c739ebd07f76a0e4e808766052bf90d4c19b
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialport/qserialportinfo.cpp')
-rw-r--r-- | src/serialport/qserialportinfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/serialport/qserialportinfo.cpp b/src/serialport/qserialportinfo.cpp index 3e7245e..ebeb6a0 100644 --- a/src/serialport/qserialportinfo.cpp +++ b/src/serialport/qserialportinfo.cpp @@ -36,6 +36,7 @@ #include "qserialportinfo.h" #include "qserialportinfo_p.h" #include "qserialport.h" +#include "qserialport_p.h" QT_BEGIN_NAMESPACE @@ -284,6 +285,10 @@ bool QSerialPortInfo::hasProductIdentifier() const Returns a list of available standard baud rates supported by the current serial port. */ +QList<qint32> QSerialPortInfo::standardBaudRates() +{ + return QSerialPortPrivate::standardBaudRates(); +} /*! \fn QList<QSerialPortInfo> QSerialPortInfo::availablePorts() |