KMediaPlayer Interface

David Faure david at mandrakesoft.com
Sat Apr 6 15:54:13 BST 2002


On Saturday 06 April 2002 13:52, Martijn Klingens wrote:
> On Saturday 06 April 2002 10:40, David Faure wrote:
> > I was going to object :), but in fact if the part doesn't call setWiget(),
> > then you have a part without widget. KParts itself already supports this.
> > But better not try to embed such a part into Konqueror :}
> >
> > The fix is simple though: use a special servicetype for "sound only, no
> > GUI", and in case of the usual KParts/ReadOnlyPart servicetype, create a
> > GUI.
> 
> I don't know how the servicetypes work, but if you can mark a part as 
> supporting GUI (default), no-GUI and optional-GUI then Neil's part can use 
> the latter.
> 
> Konq will happily embed an optional-GUI part and still call setWidget(), 
> Malte's sound player will use the same part, but without the setWidget() 
> call.

It's the part that calls setWidget(), to define its own widget - see docu.

-- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today






More information about the kde-core-devel mailing list