[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: add setType to PackageStucture
From: Petri =?iso-8859-15?q?Damst=E9n?= <petri.damsten () gmail ! com>
Date: 2008-10-30 10:41:13
Message-ID: 200810301241.13403.petri.damsten () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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
["signature.asc" (application/pgp-signature)]
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic