GUI: lobby sortfilter bugfix

This commit is contained in:
doitux
2010-03-29 18:01:49 +00:00
parent 1965e3fe5d
commit e6fa979c76
2 changed files with 1 additions and 3 deletions
@@ -15,8 +15,6 @@ bool MyGameListSortFilterProxyModel::filterAcceptsRow(int sourceRow, const QMode
QModelIndex index3 = sourceModel()->index(sourceRow, 3, sourceParent);
QModelIndex index4 = sourceModel()->index(sourceRow, 4, sourceParent);
qDebug() << sourceModel()->data(index1, 16).toString() << sourceModel()->data(index2, 16).toString() << sourceModel()->data(index3, 16).toString() << sourceModel()->data(index4, 16).toString();
return ((sourceModel()->data(index1, 16).toString().contains(column1RegExp)
&& sourceModel()->data(index2, 16).toString().contains(column2RegExp)
&& sourceModel()->data(index3, 16).toString().contains(column3RegExp)
@@ -12,7 +12,7 @@ Q_OBJECT
void setColumn1RegExp(QRegExp column1) { column1RegExp = column1; }
void setColumn2RegExp(QRegExp column2) { column2RegExp = column2; }
void setColumn3RegExp(QRegExp column3) { column3RegExp = column3; }
void setColumn4RegExp(QRegExp column4) { column3RegExp = column4; }
void setColumn4RegExp(QRegExp column4) { column4RegExp = column4; }
protected:
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;