summaryrefslogtreecommitdiffabout
path: root/microkde/kdeui/klistview.cpp
Unidiff
Diffstat (limited to 'microkde/kdeui/klistview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--microkde/kdeui/klistview.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/microkde/kdeui/klistview.cpp b/microkde/kdeui/klistview.cpp
index 25327aa..f7d2187 100644
--- a/microkde/kdeui/klistview.cpp
+++ b/microkde/kdeui/klistview.cpp
@@ -467,25 +467,34 @@ KListView::KListView( QWidget *parent, const char *name ,bool emulateRightMouse
467KListView::~KListView() 467KListView::~KListView()
468{ 468{
469 delete d; 469 delete d;
470} 470}
471 471
472bool KListView::isExecuteArea( const QPoint& point ) 472bool KListView::isExecuteArea( const QPoint& point )
473{ 473{
474 if ( itemAt( point ) ) 474 if ( itemAt( point ) )
475 return isExecuteArea( point.x() ); 475 return isExecuteArea( point.x() );
476 476
477 return false; 477 return false;
478} 478}
479QSize KListView::sizeHint() const
480{
481 //qDebug("KListView::QSize sizeHint() ");
482#ifdef DESKTOP_VERSION
483 QListView::sizeHint();
484#else
485 return QSize ( 40, 40 );
486#endif
479 487
488}
480bool KListView::isExecuteArea( int x ) 489bool KListView::isExecuteArea( int x )
481{ 490{
482 if( allColumnsShowFocus() ) 491 if( allColumnsShowFocus() )
483 return true; 492 return true;
484 else { 493 else {
485 int offset = 0; 494 int offset = 0;
486 int width = columnWidth( 0 ); 495 int width = columnWidth( 0 );
487 int pos = header()->mapToIndex( 0 ); 496 int pos = header()->mapToIndex( 0 );
488 497
489 for ( int index = 0; index < pos; index++ ) 498 for ( int index = 0; index < pos; index++ )
490 offset += columnWidth( header()->mapToSection( index ) ); 499 offset += columnWidth( header()->mapToSection( index ) );
491 500