OpenHantek
DevicesListModel Class Reference

#include <deviceslistmodel.h>

Inheritance diagram for DevicesListModel:

Public Member Functions

 DevicesListModel (FindDevices *findDevices)
 
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
 

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)
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

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