summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-30 05:09:00 (UTC)
committer zautrix <zautrix>2005-06-30 05:09:00 (UTC)
commit4e850fa7aa99f92676e49466cfccaa5d5e0ec24c (patch) (side-by-side diff)
tree5f0149a356274f475268df69a09a1a63345e9b22
parentba4a6a95356f9a8044257c45347cee8b15667d0c (diff)
downloadkdepimpi-4e850fa7aa99f92676e49466cfccaa5d5e0ec24c.zip
kdepimpi-4e850fa7aa99f92676e49466cfccaa5d5e0ec24c.tar.gz
kdepimpi-4e850fa7aa99f92676e49466cfccaa5d5e0ec24c.tar.bz2
fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--microkde/kdeui/klistview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/microkde/kdeui/klistview.cpp b/microkde/kdeui/klistview.cpp
index f7d2187..60f3084 100644
--- a/microkde/kdeui/klistview.cpp
+++ b/microkde/kdeui/klistview.cpp
@@ -459,49 +459,49 @@ KListView::KListView( QWidget *parent, const char *name ,bool emulateRightMouse
//qDebug("KListView::KListView make alternate color configurable");
d->alternateBackground = KGlobalSettings::alternateBackgroundColor();
}
KListView::~KListView()
{
delete d;
}
bool KListView::isExecuteArea( const QPoint& point )
{
if ( itemAt( point ) )
return isExecuteArea( point.x() );
return false;
}
QSize KListView::sizeHint() const
{
//qDebug("KListView::QSize sizeHint() ");
#ifdef DESKTOP_VERSION
- QListView::sizeHint();
+ return QListView::sizeHint();
#else
return QSize ( 40, 40 );
#endif
}
bool KListView::isExecuteArea( int x )
{
if( allColumnsShowFocus() )
return true;
else {
int offset = 0;
int width = columnWidth( 0 );
int pos = header()->mapToIndex( 0 );
for ( int index = 0; index < pos; index++ )
offset += columnWidth( header()->mapToSection( index ) );
x += contentsX(); // in case of a horizontal scrollbar
return ( x > offset && x < ( offset + width ) );
}
}
void KListView::slotOnItem( QListViewItem *item )
{