<html>
<head>
<meta content="text/html; charset=ISO-8859-7"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Óôéò 28/06/2012 10:52 ðì, ï/ç Martin
Gräßlin Ýãñáøå:<br>
</div>
<blockquote cite="mid:2867067.oz4yKMP1Lo@martin-desktop" type="cite">
<pre wrap="">On Thursday 28 June 2012 08:56:21 Michail V. wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Is there a way to have windows previews in a qml plasmoid?
</pre>
</blockquote>
<pre wrap="">You can have that with declarative KWin scripts:
<a class="moz-txt-link-freetext" href="http://techbase.kde.org/Development/Tutorials/KWin/WindowSwitcher">http://techbase.kde.org/Development/Tutorials/KWin/WindowSwitcher</a>
<a class="moz-txt-link-freetext" href="http://techbase.kde.org/Development/Tutorials/KWin/Scripting">http://techbase.kde.org/Development/Tutorials/KWin/Scripting</a>
But it's not possible to use inside a Plasmoid. With some hacks something
could be implemented in Plasma, but I would highly recommend to not do it :-)
Cheers
Martin
</pre>
<blockquote type="cite">
<pre wrap="">
For example is a tasks qml plasmoid possible?
Regards,
Michail</pre>
</blockquote>
</blockquote>
<br>
Ok, I would like to comment that I found a very easy way to do this.<br>
There is a function:<br>
<br>
Plasma::WindowEffects::showWindowThumbnails<br>
<br>
in order to show previews of any windows you want in a window you
want.<br>
It works like a charm when the plasmoid is placed in the dashboard
or in the desktop.<br>
<br>
1)The only thing is that I cant find is the offset that is added in
a plasmoid because of <br>
the plasma theme. There is chance to disable the plasma theme for
that plasmoid if<br>
I dont find a solution.<br>
<br>
2)About perfomance I havent noticed any drawbacks I can even say
that is more<br>
light that PresentWindows effect because it shows less windows.<br>
<br>
3)When the plasmoid is placed in a panel and it is shown through the
extender()<br>
the previews are behind the popup but I believe that there is a
chance that<br>
is a matter of plasmoid's popup implementation.<br>
<br>
Regards,<br>
Michail<br>
<br>
<br>
<br>
<br>
<blockquote cite="mid:2867067.oz4yKMP1Lo@martin-desktop" type="cite">
<blockquote type="cite">
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Plasma-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/plasma-devel">https://mail.kde.org/mailman/listinfo/plasma-devel</a>
</pre>
</blockquote>
</blockquote>
<br>
<br>
</body>
</html>