ProcessModel

class ProcessModel

Inherits from QAbstractListModel

Public Types

enum Column

Values:

PidColumn = 0
UidColumn
StatusColumn
PathColumn
ColumnCount
enum Role

Values:

ProcDescriptionRole = Qt::UserRole

Public Functions

ProcessModel(QObject *parent = 0)
int rowCount(const QModelIndex &parent = QModelIndex()) const
int columnCount(const QModelIndex &parent = QModelIndex()) const
QVariant data(const QModelIndex &index, int role) const
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const

Public Slots

void updateData()

Public Static Functions

bool lessThan(const ProcessDescription &left, const ProcessDescription &right, int column)