remove unused QDeclarativeGridViewPrivate::fixCurrentVisibility member

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2020-01-28 12:58:01 +00:00
parent 7be95c38bf
commit d99435c084

View file

@ -150,8 +150,8 @@ public:
, footerComponent(0), footer(0), headerComponent(0), header(0) , footerComponent(0), footer(0), headerComponent(0), header(0)
, bufferMode(BufferBefore | BufferAfter), snapMode(QDeclarativeGridView::NoSnap) , bufferMode(BufferBefore | BufferAfter), snapMode(QDeclarativeGridView::NoSnap)
, ownModel(false), wrap(false), autoHighlight(true) , ownModel(false), wrap(false), autoHighlight(true)
, fixCurrentVisibility(false), lazyRelease(false), layoutScheduled(false) , lazyRelease(false), layoutScheduled(false), deferredRelease(false)
, deferredRelease(false), haveHighlightRange(false), currentIndexCleared(false) {} , haveHighlightRange(false), currentIndexCleared(false) {}
void init(); void init();
void clear(); void clear();
@ -476,15 +476,14 @@ public:
int bufferMode; int bufferMode;
QDeclarativeGridView::SnapMode snapMode; QDeclarativeGridView::SnapMode snapMode;
bool ownModel : 1; bool ownModel;
bool wrap : 1; bool wrap;
bool autoHighlight : 1; bool autoHighlight;
bool fixCurrentVisibility : 1; bool lazyRelease;
bool lazyRelease : 1; bool layoutScheduled;
bool layoutScheduled : 1; bool deferredRelease;
bool deferredRelease : 1; bool haveHighlightRange;
bool haveHighlightRange : 1; bool currentIndexCleared;
bool currentIndexCleared : 1;
}; };
void QDeclarativeGridViewPrivate::init() void QDeclarativeGridViewPrivate::init()
@ -922,7 +921,6 @@ void QDeclarativeGridViewPrivate::updateCurrent(int modelIndex)
FxGridItem *oldCurrentItem = currentItem; FxGridItem *oldCurrentItem = currentItem;
currentIndex = modelIndex; currentIndex = modelIndex;
currentItem = createItem(modelIndex); currentItem = createItem(modelIndex);
fixCurrentVisibility = true;
if (oldCurrentItem && (!currentItem || oldCurrentItem->item != currentItem->item)) if (oldCurrentItem && (!currentItem || oldCurrentItem->item != currentItem->item))
oldCurrentItem->attached->setIsCurrentItem(false); oldCurrentItem->attached->setIsCurrentItem(false);
if (currentItem) { if (currentItem) {