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

List:       kde-commits
Subject:    Re: kdenonbeta/kopete
From:       Matthias Kalle Dalheimer <kalle () klaralvdalens-datakonsult ! se>
Date:       2003-08-23 14:00:16
[Download RAW message or body]

What you could e.g. do is saving the names (or other unique identifiers) to a 
QStringList and write this QStringList to KConfig. KConfig will definitely 
keep the order in this list, and you can use it in order to restore the order 
of the entries.

Another solution is to store a position with each entry and sort by those. 
That's what e.g. KMail does for the accounts.

Kalle

On Saturday 23 August 2003 13:56, Olivier Goffart wrote:
> CVS commit by ogoffart:
>
> Make the ordering of accounts working in libkpoete.
> use this account order to find the preferred contact in a metacontact with
> multiple contact.
>
> !!!!*****FIXME***TODO*****!!!
> The account order is still not saved in the KConfig file.
> KConfig does not give dirrect way (AFAIK) to save an order, unlike the old
> XML saving. I still donn't know how I (or others?) will implement the
> saving of this order.
>
> CCMAIL: 62439@bugs.kde.org
> CCMAIL: 54676@bugs.kde.org
>
>
>   M +12 -3     kopete/conf/accountconfig.cpp   1.18
>   M +21 -0     libkopete/kopeteaccountmanager.cpp   1.30
>   M +15 -0     libkopete/kopeteaccountmanager.h   1.17
>   M +8 -1      libkopete/kopetemetacontact.cpp   1.169

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

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