<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 08:19 ìì, ï/ç Aaron J.
Seigo Ýãñáøå:<br>
</div>
<blockquote cite="mid:1879010.slqmSMPZPH@freedom" type="cite">
<pre wrap="">On Thursday, June 28, 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="">
the ToolTip QML item (which isn't documented on api.kde.org with the other QML
elements since it is written in C++ *sigh*) does not expose the requisite
property in Plasma::ToolTipContent: windowsToPreview.
there are two ways to address this:
* add this functionality to the existing ToolTip element in kde-
runtime/plasma/declarativeimports/core/tooltip.cpp
* include a bit of C++ with the QML task manager applet which exposes this
the two methods are essentially identical with one important difference:
patching the tooltip.cpp in kde-runtime exposes this to *all* users of the QML
elements ... and i don't think we want to do that as we could not take that
API back later and this is one area that is likely to see some re-design in
libplasma2.
so including a bit of C++ that bridges between Plasma::ToolTipContent and QML
which does expose the windowsToPreview API would probably be best. you could
even start by just copying over those files from kde-runtime and modifying as
needed.
cheers.
</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>
<font size="+1"><font face="Arial">Aaron thanks for the reply,<br>
<br>
the plasmoid is already a hybrid one (backend in c++and qml ui)
but I dont know<br>
if I have the skills to implement this task. I would definitely
give it a try in the feature.<br>
<br>
If I understood correct, you propose to take the QML ToolTip
Item c++ code in my <br>
plasmoid and change it in order to use the
Plasma::ToolTipContent, windowsPreview<br>
in a way to use it in QML.<br>
<br>
Being honest I have already tried to use QML ToolTip in my
plasmoid with no success,<br>
I couldnt find any documentation but I will give it a second
try by examining the<br>
relevant source code...<br>
<br>
cheers.<br>
<br>
<br>
</font></font><br>
</body>
</html>