Registered Member
|
Hi,
Is it a plasma bug that after calling setBackgroundHints(TranslucentBackground), if plasmoid is on panel it's icon becomes extremaly small? By the way, is it possible to detect what is the placement of plasma widget (desktop or panel) ? Regards, Marcin |
Administrator
|
It is possible to determine the type I believe. You need to access the Plasma::Containment you are in using Plasma::Applet::containment(), then you need to call Plasma::Containment::containmentType() on it to retrieve the Plasma::Containment::Type enum.
See http://api.kde.org/4.x-api/kdelibs-apid ... 1113836d78 http://api.kde.org/4.x-api/kdelibs-apid ... aeca2b4199
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]