[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdeutils/ark
From: Henrique Pinto <henriquepinto () ufmg ! br>
Date: 2005-09-18 20:55:11
Message-ID: 1127076911.976331.28998.nullmailer () svn ! kde ! org
[Download RAW message or body]
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 <qpainter.h>
#include <qwhatsthis.h>
+#include <qheader.h>
// KDE includes
#include <klocale.h>
@@ -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 );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic