diff options
Diffstat (limited to 'src/widgets/qlistview.cpp')
-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(); |