From kde-devel Fri Aug 30 11:28:50 2002 From: Christoph Bartoschek Date: Fri, 30 Aug 2002 11:28:50 +0000 To: kde-devel Subject: Re: Waste of space in konqueror's sidebar X-MARC-Message: https://marc.info/?l=kde-devel&m=103070706807102 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------Boundary-00=_2KMNEDUM0OWTHK5GQ7PI" --------------Boundary-00=_2KMNEDUM0OWTHK5GQ7PI Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit > What about a patch file ? > > Kind regards > Joseph Wenninger This patch sets treeStepSize to 15 and sets rootIsDecorated to false for non virtual treeviews. Christoph --------------Boundary-00=_2KMNEDUM0OWTHK5GQ7PI Content-Type: text/x-diff; charset="iso-8859-1"; name="konqueror-sidebar.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="konqueror-sidebar.diff" diff -r -u3 kdebase.cvs/konqueror/sidebar/trees/konq_sidebartree.cpp kdebase/konqueror/sidebar/trees/konq_sidebartree.cpp --- kdebase.cvs/konqueror/sidebar/trees/konq_sidebartree.cpp Fri Aug 30 12:40:15 2002 +++ kdebase/konqueror/sidebar/trees/konq_sidebartree.cpp Fri Aug 30 12:46:27 2002 @@ -99,6 +99,7 @@ addColumn( QString::null ); header()->hide(); + setTreeStepSize(15); m_autoOpenTimer = new QTimer( this ); connect( m_autoOpenTimer, SIGNAL( timeout() ), @@ -161,7 +162,14 @@ m_topLevelItems.clear(); m_mapCurrentOpeningFolders.clear(); clear(); - setRootIsDecorated( true ); + if (m_dirtreeDir.type==VIRT_Folder) + { + setRootIsDecorated( true ); + } + else + { + setRootIsDecorated( false ); + } } void KonqSidebarTree::followURL( const KURL &url ) --------------Boundary-00=_2KMNEDUM0OWTHK5GQ7PI-- >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<