summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/qt/files/0014-qiconview-autoscroll.patch')
-rw-r--r--x11-libs/qt/files/0014-qiconview-autoscroll.patch50
1 files changed, 0 insertions, 50 deletions
diff --git a/x11-libs/qt/files/0014-qiconview-autoscroll.patch b/x11-libs/qt/files/0014-qiconview-autoscroll.patch
deleted file mode 100644
index dd78f5a79946..000000000000
--- a/x11-libs/qt/files/0014-qiconview-autoscroll.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-qt-bugs@ issue : 23151
-applied: no
-author: Pascal Létourneau <pletourn@globetrotter.net>
-
-Fix the QRect().contains() test.
-It was using the content pos instead of the viewport pos.
-ensureVisible() use a default margin of 50px, this should be reflected in the
-construction of the QRect.
-
-Index: iconview/qiconview.cpp
-===================================================================
-RCS file: /home/kde/qt-copy/src/iconview/qiconview.cpp,v
-retrieving revision 1.47
-diff -u -3 -p -r1.47 qiconview.cpp
---- src/iconview/qiconview.cpp 16 May 2003 13:02:38 -0000 1.47
-+++ src/iconview/qiconview.cpp 30 May 2003 20:32:34 -0000
-@@ -3257,9 +3258,11 @@ void QIconView::doAutoScroll()
- {
- QRect oldRubber = QRect( *d->rubber );
-
-- QPoint pos = QCursor::pos();
-- pos = viewport()->mapFromGlobal( pos );
-- pos = viewportToContents( pos );
-+ QPoint vp = viewport()->mapFromGlobal( QCursor::pos() );
-+ QPoint pos = viewportToContents( vp );
-+
-+ if ( pos == d->rubber->bottomRight() )
-+ return;
-
- d->rubber->setRight( pos.x() );
- d->rubber->setBottom( pos.y() );
-@@ -3352,15 +3355,14 @@ void QIconView::doAutoScroll()
- if ( d->selectionMode == Single )
- emit selectionChanged( d->currentItem );
- }
--
-- if ( !QRect( 0, 0, viewport()->width(), viewport()->height() ).contains( pos ) &&
-+ if ( !QRect( 50, 50, viewport()->width()-100, viewport()->height()-100 ).contains( vp ) &&
- !d->scrollTimer ) {
- d->scrollTimer = new QTimer( this );
-
- connect( d->scrollTimer, SIGNAL( timeout() ),
- this, SLOT( doAutoScroll() ) );
- d->scrollTimer->start( 100, FALSE );
-- } else if ( QRect( 0, 0, viewport()->width(), viewport()->height() ).contains( pos ) &&
-+ } else if ( QRect( 50, 50, viewport()->width()-100, viewport()->height()-100 ).contains( vp ) &&
- d->scrollTimer ) {
- disconnect( d->scrollTimer, SIGNAL( timeout() ),
- this, SLOT( doAutoScroll() ) );
-