diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-07-28 04:38:07 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-07-28 04:38:07 (GMT) |
commit | 853ef5b681bd685133beef03cb30e4fa65d4ace2 (patch) | |
tree | 0a41b4eff1b208b05d13f3ca541468a76b2c4d4b /src/declarative/fx/qfxlistview.cpp | |
parent | 23adda357713582df8d41ec08554359b452c4e55 (diff) | |
download | Qt-853ef5b681bd685133beef03cb30e4fa65d4ace2.zip Qt-853ef5b681bd685133beef03cb30e4fa65d4ace2.tar.gz Qt-853ef5b681bd685133beef03cb30e4fa65d4ace2.tar.bz2 |
Remove unused flag.
Diffstat (limited to 'src/declarative/fx/qfxlistview.cpp')
-rw-r--r-- | src/declarative/fx/qfxlistview.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/declarative/fx/qfxlistview.cpp b/src/declarative/fx/qfxlistview.cpp index f300d1e..e563ecb 100644 --- a/src/declarative/fx/qfxlistview.cpp +++ b/src/declarative/fx/qfxlistview.cpp @@ -175,7 +175,7 @@ public: , averageSize(100), currentIndex(-1), requestedIndex(-1) , currItemMode(QFxListView::Free), snapPos(0), highlightComponent(0), highlight(0), trackedItem(0) , moveReason(Other), buffer(0), highlightPosAnimator(0), highlightSizeAnimator(0) - , keyPressed(false), ownModel(false), wrap(false), autoHighlight(true) + , ownModel(false), wrap(false), autoHighlight(true) , fixCurrentVisibility(false) {} void init(); @@ -371,7 +371,6 @@ public: QString sectionExpression; QString currentSection; - int keyPressed : 1; int ownModel : 1; int wrap : 1; int autoHighlight : 1; @@ -1320,7 +1319,6 @@ void QFxListView::keyPressEvent(QKeyEvent *event) if ((d->orient == Qt::Horizontal && event->key() == Qt::Key_Left) || (d->orient == Qt::Vertical && event->key() == Qt::Key_Up)) { if (currentIndex() > 0 || d->wrap) { - d->keyPressed = true; d->moveReason = QFxListViewPrivate::Key; int index = currentIndex()-1; d->updateCurrent(index >= 0 ? index : d->model->count()-1); @@ -1330,7 +1328,6 @@ void QFxListView::keyPressEvent(QKeyEvent *event) } else if ((d->orient == Qt::Horizontal && event->key() == Qt::Key_Right) || (d->orient == Qt::Vertical && event->key() == Qt::Key_Down)) { if (currentIndex() < d->model->count() - 1 || d->wrap) { - d->keyPressed = true; d->moveReason = QFxListViewPrivate::Key; int index = currentIndex()+1; d->updateCurrent(index < d->model->count() ? index : 0); @@ -1343,13 +1340,6 @@ void QFxListView::keyPressEvent(QKeyEvent *event) QFxFlickable::keyPressEvent(event); } -void QFxListView::keyReleaseEvent(QKeyEvent *event) -{ - Q_D(QFxListView); - d->keyPressed = false; - QFxFlickable::keyReleaseEvent(event); -} - void QFxListView::componentComplete() { Q_D(QFxListView); |