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

List:       kde-devel
Subject:    Re: Overriding virtual methods that are QPL'd
From:       Waldo Bastian <bastian () kde ! org>
Date:       1999-09-24 7:06:01
[Download RAW message or body]

On Fri, 24 Sep 1999, Don Sanders wrote:
> I have been having great fun overriding QListViewItem::paintCell to add support
> for a backing pixmap, showing different parts of column text in different
> colours and stuff like that.
> 
> I override the method by coping the original code from
> qt/src/widgets/qlistview.cpp, about 30 lines of code, then modifying it
> 
> Am I allowed to do this? 

Technically no. If you ask permission from TrollTech, probably yes.

Note that your code will depend very much on internal Qt stuff in such 
a case and that it might break when a next version of Qt is released.

Ask the trolls, maybe they know a better solution.

Cheers,
Waldo

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

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