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

List:       kde-devel
Subject:    Re: KListView columns
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2005-10-20 19:39:41
Message-ID: 200510202139.49307.kevin.krammer () gmx ! at
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Thursday 20 October 2005 20:53, Michael Rex wrote:

> Second possibly stupid question: before deciding to use KListView (or
> better: before I found out KListView existed) I've been using a QTable. I
> couldn't find a KDE specific version of QTable, say KTable, so the question
> is: is there no such thing or am I missing something? For my current
> requirements KListView works great, but there might be situations in which
> a table is the better choice over a listview, and QTable doesn't seem to
> offer things like alternating line colors.

If you want a table with alternating background color, you could derive from 
QTable, reimplement paintCell and, depending of the line number, adjust a 
copy of the color group with KGlobalSettings::alternateBackgroundColor

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer@gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org

[Attachment #5 (application/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