DeviceCompleter.hpp
1 #pragma once
2 #include <QCompleter>
3 #include <QString>
4 #include <QStringList>
5 
6 class QModelIndex;
7 class QObject;
8 namespace Device
9 {
10 class NodeBasedItemModel;
11 }
12 namespace Device
13 {
14 
22 class DeviceCompleter final : public QCompleter
23 {
24 public:
25  DeviceCompleter(Device::NodeBasedItemModel& model, QObject* parent);
26 
27  QString pathFromIndex(const QModelIndex& index) const override;
28  QStringList splitPath(const QString& path) const override;
29 };
30 }
The DeviceCompleter class.
Definition: DeviceCompleter.hpp:23
Definition: NodeBasedItemModel.hpp:18
Manipulation of Devices from Qt.
Definition: AddressSettings.cpp:14