summaryrefslogtreecommitdiffstats
path: root/src/bluetoothsettings/discoverymodel.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2016-10-06 08:37:41 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-11-16 11:54:55 +0000
commit48af5733bcd959146ac157a3c4759c8d89ccc465 (patch)
tree435177130f0cb39290fc0e89bf2885624c24eb58 /src/bluetoothsettings/discoverymodel.h
parent2b6766f09ad53f1cf2ba7cfe95976b4322c2e8fd (diff)
clean up public headers
If this project is treated as a Qt module, it didn't build without these fixes because QT_NO_KEYWORDS and -Werror=zero-as-null-pointer-constant are enforced. Change-Id: Ie3ab8597b338478a5a34ed49d176ce9a647b1e0e Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Teemu Holappa <teemu.holappa@qt.io> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io> Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/bluetoothsettings/discoverymodel.h')
-rw-r--r--src/bluetoothsettings/discoverymodel.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bluetoothsettings/discoverymodel.h b/src/bluetoothsettings/discoverymodel.h
index d9678a3..e32ad9b 100644
--- a/src/bluetoothsettings/discoverymodel.h
+++ b/src/bluetoothsettings/discoverymodel.h
@@ -44,7 +44,7 @@ class Q_DECL_EXPORT BtDeviceItem : public QObject
Q_PROPERTY(bool connected READ connected NOTIFY connectedChanged)
Q_PROPERTY(DeviceType type READ type CONSTANT)
public:
- explicit BtDeviceItem(const QBluetoothDeviceInfo& id, QObject *parent=0);
+ explicit BtDeviceItem(const QBluetoothDeviceInfo& id, QObject *parent = nullptr);
//The list of device type we want to show the icon
enum DeviceType {
Phone,
@@ -65,7 +65,7 @@ public:
bool connected() const;
void setConnected(bool aConnected);
-signals:
+Q_SIGNALS:
void connectedChanged();
protected:
@@ -90,7 +90,7 @@ class Q_DECL_EXPORT DiscoveryModel : public QAbstractListModel
Q_OBJECT
Q_ENUMS(DeviceType)
public:
- explicit DiscoveryModel(QObject *parent=0);
+ explicit DiscoveryModel(QObject *parent = nullptr);
virtual ~DiscoveryModel();
// from QAbstractItemModel
int rowCount(const QModelIndex & parent = QModelIndex()) const;
@@ -106,11 +106,12 @@ public:
Connected
};
-signals:
+Q_SIGNALS:
void scanFinished();
-private slots:
+private Q_SLOTS:
void deviceDiscovered(const QBluetoothDeviceInfo &device);
+
private:
QList<BtDeviceItem*> m_items;
QHash<int, QByteArray> m_roleNames;