On Thursday 30 October 2008 12:30:10 Aaron J. Seigo wrote:
> On Thursday 30 October 2008, Petri Damstén wrote:
> > If we copy Plasma::Applet::packageStructure() to custom package structure
> > type is also copied and we have no setType to correct it.
>
> what is the exact use case for this?

e.g. in comic package structure constructor:

    Q_UNUSED( args )
    // copy the main applet structure
    Plasma::PackageStructure::operator=( *Plasma::Applet::packageStructure() 
);
    // Copying resets type
    setType( "Comic" );
    setDefaultPackageRoot( "plasma/comics/" );
    setServicePrefix( "plasma-comic-" );
    setRequired( "mainscript", false ); // So we can test for .py, .rb etc.

Petri

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to