rahulch

Untitled

Oct 30th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. bool AttendanceModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
  3. {
  4.     QModelIndex nameIndex = sourceModel()->index(sourceRow, /*PersonDisplayDetailsModel::DisplayTextRole*/0, sourceParent);
  5.     QModelIndex frIDIndex = sourceModel()->index(sourceRow, /*PersonDisplayDetailsModel::FRIDRole*/1, sourceParent);
  6.     qDebug() << "\nnameIndex = " << nameIndex;
  7.     qDebug() << "sourceModel()->data(nameIndex) = " << sourceModel()->data(nameIndex);
  8.     qDebug() << "frIDIndex = " << frIDIndex;
  9.     qDebug() << "sourceModel()->data(frIDIndex) = " << sourceModel()->data(frIDIndex);
  10.    
  11.     return true;
  12. }
Add Comment
Please, Sign In to add comment