diff options
author | Timothy Pearson <[email protected]> | 2013-06-10 13:21:44 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-06-10 13:21:44 -0500 |
commit | 33e14b0aa37fd7bc47547ec187d4adde826f0da1 (patch) | |
tree | 7fc1e649d0dacfbaad54533bd97e569cfbbe138e /src/widgets | |
parent | 245c821c1974c8a9bce0f2977ab5f462c87a9cba (diff) | |
download | tqt3-33e14b0aa37fd7bc47547ec187d4adde826f0da1.tar.gz tqt3-33e14b0aa37fd7bc47547ec187d4adde826f0da1.zip |
Automated update from Qt3
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/qlistview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/widgets/qlistview.cpp b/src/widgets/qlistview.cpp index 42aebfbe6..79d338120 100644 --- a/src/widgets/qlistview.cpp +++ b/src/widgets/qlistview.cpp @@ -5181,11 +5181,13 @@ void TQListView::keyPressEvent( TQKeyEvent * e ) TQListViewItem * TQListView::itemAt( const TQPoint & viewPos ) const { - if ( viewPos.x() > contentsWidth() - contentsX() ) + if ( viewPos.x() > contentsWidth() - contentsX() ) { return 0; + } - if ( !d->drawables || d->drawables->isEmpty() ) + if ( !d->drawables || d->drawables->isEmpty() ) { buildDrawableList(); + } TQListViewPrivate::DrawableItem * c = d->drawables->first(); int g = viewPos.y() + contentsY(); |