OpenHantek
Loading...
Searching...
No Matches
DevicesListModel Class Reference

#include <deviceslistmodel.h>

Inheritance diagram for DevicesListModel:

Public Member Functions

 DevicesListModel (FindDevices *findDevices, int verboseLevel=0)
int rowCount (const QModelIndex &parent) const override
int columnCount (const QModelIndex &parent) const override
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
QVariant data (const QModelIndex &index, int role) const override
void updateDeviceList ()

Private Attributes

std::vector< DeviceListEntryentries
FindDevicesfindDevices
int verboseLevel = 0

Detailed Description

Provides a Model for the Qt Model/View concept. The {

See also
FindDevices} is required to update the list of available devices.

Constructor & Destructor Documentation

◆ DevicesListModel()

DevicesListModel::DevicesListModel ( FindDevices * findDevices,
int verboseLevel = 0 )
explicit

Member Function Documentation

◆ columnCount()

int DevicesListModel::columnCount ( const QModelIndex & parent) const
override

◆ data()

QVariant DevicesListModel::data ( const QModelIndex & index,
int role ) const
override

◆ headerData()

QVariant DevicesListModel::headerData ( int section,
Qt::Orientation orientation,
int role ) const
override

◆ rowCount()

int DevicesListModel::rowCount ( const QModelIndex & parent) const
override

◆ updateDeviceList()

void DevicesListModel::updateDeviceList ( )

Field Documentation

◆ entries

std::vector< DeviceListEntry > DevicesListModel::entries
private

◆ findDevices

FindDevices* DevicesListModel::findDevices
private

◆ verboseLevel

int DevicesListModel::verboseLevel = 0
private

The documentation for this class was generated from the following files: