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 );