[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Sorting date and other column types in {K,Q}ListViews
From: shaheed <srhaque () iee ! org>
Date: 2001-12-31 12:55:02
[Download RAW message or body]
Hi Carsten,
> The same is in kfile btw. Usually you reimplement key() in your item-class
> and return a suitable QString there. To calculate them, there is
>
> static QString sortingKey( const QString& value, bool isDir, int
> sortSpec); static QString sortingKey( KIO::filesize_t value, bool isDir,int
> sortSpec);
>
> in KFileItem. sortSpec can be an ORed combination of QDir::SortSpec items.
> You have to use the filesize_t method for dates as well due to ambiguity
> with time_t.
Perfect. Just what I was after...Cervisia now has dates!
Thanks, Shaheed
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic