diff options
author | Milian Wolff <milian.wolff@kdab.com> | 2013-03-27 17:04:06 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2013-03-28 00:39:48 +0100 |
commit | 4f6ca7f90a88224eb6afc90d289de2d47c3c06a1 (patch) | |
tree | 49cf4ab8951a1f137dd111a22742829a099edd5d /src/bluetooth/qbluetoothdeviceinfo.cpp | |
parent | d05da2c8a6c2a794e9f4372f5b29112b85208f97 (diff) |
Add QBluetoothDeviceInfo::operator!= which was missing.
The code just forwards to operator==, as is done as well by e.g.
QBluetoothTransferRequest.
Change-Id: I4db523124b6bd88bcb1f129d0742fc8ef376c61b
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/bluetooth/qbluetoothdeviceinfo.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothdeviceinfo.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothdeviceinfo.cpp b/src/bluetooth/qbluetoothdeviceinfo.cpp index 026b695f..7bc5e66a 100644 --- a/src/bluetooth/qbluetoothdeviceinfo.cpp +++ b/src/bluetooth/qbluetoothdeviceinfo.cpp @@ -398,6 +398,16 @@ bool QBluetoothDeviceInfo::operator==(const QBluetoothDeviceInfo &other) const } /*! + Returns true if this object is different from \a other, or false otherwise. + + \sa operator==() +*/ +bool QBluetoothDeviceInfo::operator!=(const QBluetoothDeviceInfo &other) const +{ + return !(*this == other); +} + +/*! Returns the address of the device. */ QBluetoothAddress QBluetoothDeviceInfo::address() const |