removed few comment lines
This commit is contained in:
parent
52937cbcb3
commit
73c5295f6d
|
|
@ -73,27 +73,10 @@ QVariant SqlModel::data(const QModelIndex &index, int role) const
|
||||||
if (role == Qt::DisplayRole) {
|
if (role == Qt::DisplayRole) {
|
||||||
Row<Table> t = d->rows.at(index.row());
|
Row<Table> t = d->rows.at(index.row());
|
||||||
QVariant v = t->property(d->model->field(index.column())->name.toLocal8Bit().data());
|
QVariant v = t->property(d->model->field(index.column())->name.toLocal8Bit().data());
|
||||||
// emit beforeShowText(index.column(), v);
|
|
||||||
if (_renderer != nullptr)
|
if (_renderer != nullptr)
|
||||||
v = _renderer(index.column(), v);
|
v = _renderer(index.column(), v);
|
||||||
return v;
|
return v;
|
||||||
// LogData *d = dataList.at(index.row());
|
|
||||||
|
|
||||||
// switch (index.column()) {
|
|
||||||
// case COL_ID:
|
|
||||||
// return index.row() + 1;
|
|
||||||
// case COL_Type: {
|
|
||||||
// return typeText(d->type);
|
|
||||||
// }
|
|
||||||
// case COL_TITLE:
|
|
||||||
// return d->title;
|
|
||||||
// case COL_File:
|
|
||||||
// return d->file;
|
|
||||||
// case COL_Function:
|
|
||||||
// return d->function;
|
|
||||||
// case COL_Line:
|
|
||||||
// return d->line;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue