> > ---------- Messaggio inoltrato ---------- > From: "Aaron J. Seigo" <ase...@kde.org> > To: plasma-devel@kde.org > Date: Thu, 14 Apr 2011 18:47:41 +0200 > Subject: Re: Can't collapse QML plasmoid to icon > On Thursday, April 14, 2011 18:30:36 Diego Casella wrote: > > [I didn't received any response yet, so I'm posting again since on April > 28 > > there is the soft freeze fo 4.7, and I'd like to fill the KMix plasmoid > > review request as soon as I can :)] > > > > Hello guys, > > I'm facing an other problem during the development of the KMix plasmoid > > replacement. As I wrote on the subject of this email, I can't set a > > popupIcon for that plasmoid. I've modified the "Service Types" in > > metadata.desktop to "Plasma/Applet,Plasma/PopupApplet" (I even tried just > > "Plasma/PopupApplet") and then, inside the main Component.onCompleted > > function: > > > > plasmoid.setMinimumSize(80, 150) > > plasmoid.popupIcon("audio-volume-high") > > perhaps: > > plasmoid.popupIcon = "audio-volume-high" > > it's a property, not a function :) >
Oh my bad, I was still thinking of it as its c++ setPopupIcon() equivalent >.< However, now now I've noticed an other weird issue: if I declare the applet as "Plasma/PopupApplet", install the applet, and run kbuildsycoca4, the widgetexplorer doesn't show the applet at all. If I declare the plasmoid as "Plasma/Applet,Plasma/PopupApplet", plasmapkg (and also plasmate) refuses to install it. If I copy it with "cp -r", the widgets explorer now displays the new plasmoid but, still, it is not collapsed into an icon when placed in the panel (popupIcon is a QIcon property btw :). Pretty weird, isn't it? > > -- > Aaron J. Seigo > humru othro a kohnu se > GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 > > KDE core developer sponsored by Qt Development Frameworks > > -- H: Who is Watson without Sherlock Holmes? G: Watson was a genius in his own right. My personal blog: http://polentino911.wordpress.com/
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel