16 connect(
m_Normalizer -> inputData(), SIGNAL(operationCompleted()),
17 this, SLOT(operationCompleted()));
32 if (parent.column() > 0) {
44 int res = 3 +
m_Normalizer -> inputData() -> maxColumnCount();
56 if (!index.isValid()) {
60 if (role == Qt::DisplayRole) {
62 int row = index.row();
63 int col = index.column();
69 return scan -> name();
72 return scan -> maxRowCount();
87 }
else if (role == Qt::BackgroundRole) {
88 int row = index.row();
89 int col = index.column();
98 return QColor(230,255,230);
100 return QColor(Qt::white);
114 }
else if (role == Qt::ForegroundRole) {
117 int row = index.row();
118 int col = index.column();
127 return QColor(Qt::black);
129 return QColor(Qt::gray);
150 (
int section, Qt::Orientation orientation,
int role)
const
152 if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
164 return tr(
"Col %1").arg(section-3);
168 if (orientation == Qt::Vertical && role == Qt::DisplayRole) {
212 QItemSelection sel = s->selection();
213 QItemSelectionRange range;
215 foreach(range, sel) {
216 for (
int i=range.top(); i<=range.bottom(); i++) {
226 QItemSelection sel = s->selection();
227 QItemSelectionRange range;
229 foreach(range, sel) {
230 for (
int i=range.top(); i<=range.bottom(); i++) {
231 for (
int c=range.left(); c<=range.right(); c++) {
int rowCount(const QModelIndex &parent=QModelIndex()) const
void setScanExceptions(QItemSelectionModel *s, QseNormalizer::QseScanRole r)
QAbstractTableModel inherited
QVariant data(const QModelIndex &index, int role) const
QseNormalizer * m_Normalizer
static QColor colorForRole(QseColumnRole r)
int columnCount(const QModelIndex &parent=QModelIndex()) const
void operationCompleted()
QseColumnRole exceptionalColumnRole(int s, int c)
QseColumnRole patternColumnRole(int s, int c)
QseNormalizerModel(QseNormalizer *normalizer, QTableView *tableview, QObject *parent=0)
QseColumn * column(int n) const
void setColumnExceptions(QItemSelectionModel *s, QseNormalizer::QseColumnRole r)
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QseNormalizer * m_Normalizer
static QColor backgroundColorForRole(QseColumnRole r)