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

List:       kdevelop-bugs
Subject:    [Bug 204399] crash in QAbstractItemView::sizeHintForRow / FocusedTreeView
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2012-08-07 8:50:29
Message-ID: bug-204399-40295-VchZsJdV0v () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=204399

--- Comment #23 from Andreas Pakulat <apaku@gmx.de> ---
I don't agree with your assessment about having a 1:1 relation between view and
delegate. In particular it doesn't match the Qt api docs which would usually
take ownership of things when they require a 1:1 relation anyway. But the
itemview API docs explicitly don't do this. And frankly not re-using the
delegate here would mean a lot of wasted memory since each delegate would need
to keep its own set of brushes IIRC.

I agree though that given the plugin never sees anything about the GUI side of
the outputview, it should not be allowed to take ownership of the delegate
either. The delegate clearly belongs to the view.

I assume the job is not necessary to keep around and the model's ownership is
already in the framework and not the plugin? Then removing the flag and moving
ownership of the delegate always into the framework  should be all thats needed
to fix these crashes.

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

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