summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-12-10 13:31:32 +0100
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-12-11 11:10:24 +0000
commit39781901b1183429cb62310a1cee4c3ffa49a0ec (patch)
tree0ba63568116c053a78039526b42501c7ac629338 /src
parent38b765206c352cc88123a03025024b3e5e368a4a (diff)
Add operator!= for QBluetoothUuid.
Change-Id: I37942b9123116693c5b4cf6dd9d0747b7cfb2d06 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/bluetooth/qbluetoothuuid.cpp8
-rw-r--r--src/bluetooth/qbluetoothuuid.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothuuid.cpp b/src/bluetooth/qbluetoothuuid.cpp
index 3c8dc786..0808bc98 100644
--- a/src/bluetooth/qbluetoothuuid.cpp
+++ b/src/bluetooth/qbluetoothuuid.cpp
@@ -1127,11 +1127,17 @@ QString QBluetoothUuid::descriptorToString(QBluetoothUuid::DescriptorType uuid)
}
/*!
- Returns true if \a other is equal to this Bluetooth UUID, otherwise false.
+ Returns \c true if \a other is equal to this Bluetooth UUID, otherwise \c false.
*/
bool QBluetoothUuid::operator==(const QBluetoothUuid &other) const
{
return QUuid::operator==(other);
}
+/*!
+ \fn bool QBluetoothUuid::operator!=(const QBluetoothUuid &other) const
+ Returns \c true if \a other is not equal to this Bluetooth UUID, otherwise \c false.
+ \since 5.7
+*/
+
QT_END_NAMESPACE
diff --git a/src/bluetooth/qbluetoothuuid.h b/src/bluetooth/qbluetoothuuid.h
index 4646531c..1e8adbb1 100644
--- a/src/bluetooth/qbluetoothuuid.h
+++ b/src/bluetooth/qbluetoothuuid.h
@@ -373,6 +373,7 @@ public:
~QBluetoothUuid();
bool operator==(const QBluetoothUuid &other) const;
+ bool operator!=(const QBluetoothUuid &other) const { return !operator==(other); }
int minimumSize() const;