Refresh bug with the setFullWidth(true) method of KListView object

David Faure faure at kde.org
Thu Apr 28 13:25:05 BST 2005


On Thursday 28 April 2005 13:42, Nicolas Ternisien wrote:
> Hello everybody !
> 
> I'm currently developing an application for KDE, and its main widget
> is a KListView.
> When the method setFullWidth(true) is called to this object, some
> refresh bugs appears when we move the size of the before-last columns
> and last one.
> 
> The bug looks like big blank squares, and disappears when an item is
> selected. (and partial disappears we we move the list scrollbar.

Can you reproduce the bug with kdelibs/kdeui/tests/klistviewtest.cpp?
Seems to work here...

Index: klistviewtest.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/tests/klistviewtest.cpp,v
retrieving revision 1.3
diff -u -p -r1.3 klistviewtest.cpp
--- klistviewtest.cpp   28 Feb 2004 17:52:00 -0000      1.3
+++ klistviewtest.cpp   28 Apr 2005 12:24:04 -0000
@@ -13,6 +13,7 @@ int main( int argc, char **argv )
        view->setDragEnabled( true );
        view->setItemsMovable( false );
        view->setAcceptDrops( true );
+       view->setFullWidth( true );
        view->addColumn("Column 1");
        view->addColumn("Column 2");
        view->addColumn("Column 3");

(use "make klistviewtest && ./klistviewtest" to compile and run the test application)

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list