From kde-commits Sun Sep 18 20:55:11 2005 From: Henrique Pinto Date: Sun, 18 Sep 2005 20:55:11 +0000 To: kde-commits Subject: branches/KDE/3.5/kdeutils/ark Message-Id: <1127076911.976331.28998.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=112707692104637 SVN commit 461837 by henrique: Don't show the list view header unless there are columns in it. M +5 -0 filelistview.cpp --- branches/KDE/3.5/kdeutils/ark/filelistview.cpp #461836:461837 @@ -29,6 +29,7 @@ // Qt includes #include #include +#include // KDE includes #include @@ -190,6 +191,7 @@ setRootIsDecorated( true ); setShowSortIndicator( true ); setResizeMode( QListView::AllColumns ); + header()->hide(); // Don't show the header until there is something to be shown in it m_pressed = false; } @@ -406,10 +408,13 @@ int colnum = addColumn( pair.first ); setColumnAlignment( colnum, pair.second ); } + + header()->show(); } void FileListView::clearHeaders() { + header()->hide(); while ( columns() > 0 ) { removeColumn( 0 );