[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Rearranging subdirs in bookmarks menu
From: Kurt Granroth <granroth () kde ! org>
Date: 1999-12-08 23:25:56
[Download RAW message or body]
Currently, the bookmarks menu in konqueror and kdesktop both insert
subdirectories in a first-come-first-serve manner... but I think it
makes more sense to have them show up on the top of the menu by
default.
Here is a diff that would do this:
----------------------------------------------------------------------
--- kbookmark.h 1999/11/14 14:10:38 1.8
+++ kbookmark.h 1999/12/08 23:24:44
@@ -55,7 +55,7 @@
QString pixmapFile();
QPixmap pixmap();
- void append( KBookmark *_bm ) { m_lstChildren.append( _bm ); }
+ void append( KBookmark *_bm ) { (_bm->type() == Folder) ? m_lstChildren.prepend( \
_bm) : m_lstChildren.append( _bm ); }
QList<KBookmark> *children() { return &m_lstChildren; }
----------------------------------------------------------------------
Very simply, if the type is folder, add it to the top of the list
instead of the bottom.
Does this sound good to anybody else? Should I apply it?
--
Kurt Granroth | http://www.pobox.com/~kurt_granroth
KDE Developer/Evangelist | SuSE Labs Open Source Developer
granroth@kde.org | granroth@suse.com
KDE -- Putting a Friendly Face on Unix
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic