QXRD
0.11.16
|
#include <qxrddetectorproxylistmodel.h>
Public Member Functions | |
QxrdDetectorProxyListModel () | |
int | rowCount (const QModelIndex &parent) const |
int | columnCount (const QModelIndex &parent) const |
QVariant | data (const QModelIndex &index, int role) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
bool | setData (const QModelIndex &index, const QVariant &value, int role) |
void | append (QxrdDetectorProxyPtr proxy) |
void | removeDetector (int row) |
void | moveDetectorDown (int row) |
void | moveDetectorUp (int row) |
void | configureDetector (int row) |
QxrdDetectorProxyPtr | detectorProxy (int i) |
Private Member Functions | |
void | renumberDetectors () |
Private Attributes | |
QVector< QxrdDetectorProxyPtr > | m_DetectorProxies |
Definition at line 7 of file qxrddetectorproxylistmodel.h.
QxrdDetectorProxyListModel::QxrdDetectorProxyListModel | ( | ) |
Definition at line 4 of file qxrddetectorproxylistmodel.cpp.
void QxrdDetectorProxyListModel::append | ( | QxrdDetectorProxyPtr | proxy | ) |
Definition at line 123 of file qxrddetectorproxylistmodel.cpp.
References m_DetectorProxies, and renumberDetectors().
int QxrdDetectorProxyListModel::columnCount | ( | const QModelIndex & | parent | ) | const |
Definition at line 13 of file qxrddetectorproxylistmodel.cpp.
void QxrdDetectorProxyListModel::configureDetector | ( | int | row | ) |
Definition at line 188 of file qxrddetectorproxylistmodel.cpp.
References m_DetectorProxies.
QVariant QxrdDetectorProxyListModel::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
Definition at line 18 of file qxrddetectorproxylistmodel.cpp.
References m_DetectorProxies.
QxrdDetectorProxyPtr QxrdDetectorProxyListModel::detectorProxy | ( | int | i | ) |
Definition at line 134 of file qxrddetectorproxylistmodel.cpp.
References m_DetectorProxies.
Qt::ItemFlags QxrdDetectorProxyListModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 109 of file qxrddetectorproxylistmodel.cpp.
QVariant QxrdDetectorProxyListModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role | ||
) | const |
Definition at line 54 of file qxrddetectorproxylistmodel.cpp.
void QxrdDetectorProxyListModel::moveDetectorDown | ( | int | row | ) |
Definition at line 150 of file qxrddetectorproxylistmodel.cpp.
References m_DetectorProxies, and renumberDetectors().
void QxrdDetectorProxyListModel::moveDetectorUp | ( | int | row | ) |
Definition at line 169 of file qxrddetectorproxylistmodel.cpp.
References m_DetectorProxies, and renumberDetectors().
void QxrdDetectorProxyListModel::removeDetector | ( | int | row | ) |
Definition at line 139 of file qxrddetectorproxylistmodel.cpp.
References m_DetectorProxies, and renumberDetectors().
|
private |
Definition at line 197 of file qxrddetectorproxylistmodel.cpp.
References m_DetectorProxies.
Referenced by append(), moveDetectorDown(), moveDetectorUp(), and removeDetector().
int QxrdDetectorProxyListModel::rowCount | ( | const QModelIndex & | parent | ) | const |
Definition at line 8 of file qxrddetectorproxylistmodel.cpp.
References m_DetectorProxies.
bool QxrdDetectorProxyListModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role | ||
) |
Definition at line 81 of file qxrddetectorproxylistmodel.cpp.
References m_DetectorProxies.
|
private |
Definition at line 38 of file qxrddetectorproxylistmodel.h.
Referenced by append(), configureDetector(), data(), detectorProxy(), moveDetectorDown(), moveDetectorUp(), removeDetector(), renumberDetectors(), rowCount(), and setData().