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

List:       kde-devel
Subject:    Re: Moving a QListViewItem
From:       Dirk Mueller <mueller () kde ! org>
Date:       2000-06-02 8:43:16
[Download RAW message or body]

On Don, 01 Jun 2000, Charles wrote:

> My question is, why can an item be added anywhere ( QListViewItem(parent,
> _after_) ), yet cannot be moved?

Well, because normally this is done by changing the ::key()'s to affect the
sorting. Much easier and faster because takeItem/insertItem does some
bookkeeping which makes it slow. 

I don't see the reason why we must extend QListView with methods that are
just slow. A general rule is only implement those things that can be done
efficiently in an API. 


Dirk
 
>> Visit http://master.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