FlightGear next
PathListModel Class Reference

#include <PathListModel.hxx>

Inherits QAbstractListModel.

Public Slots

void removePath (int index)
 
void appendPath (QString path)
 
void swapIndices (int indexA, int indexB)
 

Signals

void enabledPathsChanged ()
 
void countChanged ()
 

Public Member Functions

 PathListModel (QObject *pr)
 
 ~PathListModel () override
 
void loadFromSettings (QString key)
 
void saveToSettings (QString key) const
 
int rowCount (const QModelIndex &parent) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 
QHash< int, QByteArray > roleNames () const override
 
QStringList enabledPaths () const
 
int count ()
 

Static Public Member Functions

static QStringList readEnabledPaths (QString settingsKey)
 

Properties

int count
 

Detailed Description

Definition at line 11 of file PathListModel.hxx.

Constructor & Destructor Documentation

◆ PathListModel()

PathListModel::PathListModel ( QObject * pr)

Definition at line 6 of file PathListModel.cxx.

◆ ~PathListModel()

PathListModel::~PathListModel ( )
override

Definition at line 12 of file PathListModel.cxx.

Member Function Documentation

◆ appendPath

void PathListModel::appendPath ( QString path)
slot

Definition at line 157 of file PathListModel.cxx.

◆ count()

int PathListModel::count ( )

◆ countChanged

void PathListModel::countChanged ( )
signal

◆ data()

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

Definition at line 101 of file PathListModel.cxx.

◆ enabledPaths()

QStringList PathListModel::enabledPaths ( ) const

Definition at line 79 of file PathListModel.cxx.

◆ enabledPathsChanged

void PathListModel::enabledPathsChanged ( )
signal

◆ loadFromSettings()

void PathListModel::loadFromSettings ( QString key)

Definition at line 17 of file PathListModel.cxx.

◆ readEnabledPaths()

QStringList PathListModel::readEnabledPaths ( QString settingsKey)
static

Definition at line 60 of file PathListModel.cxx.

◆ removePath

void PathListModel::removePath ( int index)
slot

Definition at line 142 of file PathListModel.cxx.

◆ roleNames()

QHash< int, QByteArray > PathListModel::roleNames ( ) const
override

Definition at line 134 of file PathListModel.cxx.

◆ rowCount()

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

Definition at line 95 of file PathListModel.cxx.

◆ saveToSettings()

void PathListModel::saveToSettings ( QString key) const

Definition at line 46 of file PathListModel.cxx.

◆ setData()

bool PathListModel::setData ( const QModelIndex & index,
const QVariant & value,
int role )
override

Definition at line 120 of file PathListModel.cxx.

◆ swapIndices

void PathListModel::swapIndices ( int indexA,
int indexB )
slot

Definition at line 170 of file PathListModel.cxx.

Property Documentation

◆ count

int PathListModel::count
read

Definition at line 15 of file PathListModel.hxx.


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