Commit 51d4ac7c authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: small buggy test if modelinder is hidden or now

parent 795abbd5
......@@ -416,9 +416,14 @@ QModelIndex PicFlowView::moveCursor(QAbstractItemView::CursorAction action, Qt::
{
}
bool PicFlowView::isIndexHidden(const QModelIndex &) const
bool PicFlowView::isIndexHidden(const QModelIndex &index) const
{
return false;
int currentIndex = picFlow->centerIndex();
if( index.row()-5 <= currentIndex &&
index.row()+5 >= currentIndex )
return false;
else
return true;
}
QRegion PicFlowView::visualRegionForSelection(const QItemSelection &) const
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment