[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KGpg for KDE 3.2
From:       Willy De la Court <Willy.DelaCourt () pandora ! be>
Date:       2003-04-17 8:23:40
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 17 April 2003 04:18, bj@altern.org wrote:
> Hi!
>
> > I guess
> > the window doesn't open very quick because it reads all keys before
> > showing the window. If this is the case then you should delay loading
> > the keys. One way to do this would be to start a single shot timer when
> > the window is opened and when the timer times out then you read the
> > keys.
>
> Could be a good idea, I will try it...
Maybe a better idea would be to use this

QTDocs---------------------------------------------
void QListViewItem::setExpandable ( bool enable ) [virtual] 

Sets this item to be expandable even if it has no children if enable is TRUE, 
and to be expandable only if it has children if enable is FALSE (the 
default). 

The dirview example uses this in the canonical fashion. It checks whether the 
directory is empty in setup() and calls setExpandable(TRUE) if not; in 
setOpen() it reads the contents of the directory and inserts items 
accordingly. This strategy means that dirview can display the entire file 
system without reading very much at startup. 


Note that root items are not expandable by the user unless 
QListView::setRootIsDecorated() is set to TRUE. 
QTDocs---------------------------------------------

So it's possible to only add the toplevel listviewitems and when the user 
clicks the + in fron of it then and only then add the other subkeys

Initially this should go ver fast since only a fraction of the listview items 
are added to the Listview

- -- 
Simple things make people happy.
Willy De la Court
PGP Public Key at http://www.linux-lovers.be/download/public_key.asc
PGP Key fingerprint = 784E E18F 7F85 9C7C AC1A D5FB FE08 686C 37C7 A689
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+nmST/ghobDfHpokRAjrlAKCfLIdXYXf0u2jfDLG6izHtYpWGNwCgjRd6
Vrn2AA6Mnk7jcvmzxnHYLyg=
=Vc14
-----END PGP SIGNATURE-----

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic