[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: KWord frames refactor
From: David Faure <faure () kde ! org>
Date: 2005-10-25 17:06:26
Message-ID: 200510251906.27352.faure () kde ! org
[Download RAW message or body]
On Tuesday 25 October 2005 01:38, Thomas Zander wrote:
> > Instead of listeners, why not have KWFrameViewManager emit a signal?
> > Views can then connect themselves.
>
> QObject is too heavy weight for just wanting to do simple callbacks.
I would agree if you're talking about listviewitems or some object that's created
a big number of times.
For a view manager - there will be only one instance of it per view, right? -
I really don't see the problem with using QObject and a signal.
It simplifies the model because you don't have to create yet another base class
(interface) just to listen to signals from the viewmanager.
Qt makes it easy, and the cost for a one-per-view object is really 0, so
why not use the standard Qt way?
--
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic