Hi,

If we copy Plasma::Applet::packageStructure() to custom package structure type 
is also copied and we have no setType to correct it.

Index: packagestructure.cpp
===================================================================
--- packagestructure.cpp        (revision 877358)
+++ packagestructure.cpp        (working copy)
@@ -169,6 +169,11 @@
     return d->type;
 }

+void PackageStructure::setType(const QString &type)
+{
+    d->type = type;
+}
+
 QList<const char*> PackageStructure::directories() const
 {
     QList<const char*> dirs;
@@ -403,6 +408,7 @@

 void PackageStructure::createNewWidgetBrowser(QWidget *parent)
 {
+    Q_UNUSED(parent)
     emit newWidgetBrowserFinished();
 }

Index: packagestructure.h
===================================================================
--- packagestructure.h  (revision 877358)
+++ packagestructure.h  (working copy)
@@ -294,6 +294,11 @@
     void setDefaultPackageRoot(const QString &packageRoot);

     /**
+     * Sets package type.
+     */
+    void setType(const QString &type);
+
+    /**
      * Called whenever the path changes so that subclasses may take
      * package specific actions.
      */

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