summaryrefslogtreecommitdiffstats
path: root/src/widgets/qlistview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-06-10 13:21:44 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-06-10 13:21:44 -0500
commit33e14b0aa37fd7bc47547ec187d4adde826f0da1 (patch)
tree7fc1e649d0dacfbaad54533bd97e569cfbbe138e /src/widgets/qlistview.cpp
parent245c821c1974c8a9bce0f2977ab5f462c87a9cba (diff)
downloadtqt3-33e14b0aa37fd7bc47547ec187d4adde826f0da1.tar.gz
tqt3-33e14b0aa37fd7bc47547ec187d4adde826f0da1.zip
Automated update from Qt3
Diffstat (limited to 'src/widgets/qlistview.cpp')
-rw-r--r--src/widgets/qlistview.cpp6
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();