[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Windows previews in qml plasmoid?
From:       Michail Vourlakos <mvourlakos () gmail ! com>
Date:       2012-06-28 18:02:03
Message-ID: 4FEC9C1B.7020609 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Στις 28/06/2012 08:19 μμ, ο/η Aaron J. Seigo έγραψε:
> On Thursday, June 28, 2012 08:56:21 Michail V. wrote:
>> Is there a way to have windows previews in a qml plasmoid?
> 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.
>
>
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel@kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
Aaron thanks for the reply,

the plasmoid is already a hybrid one (backend in c++and qml ui) but I 
dont know
if I have the skills to implement this task. I would definitely give it 
a try in the feature.

If I understood correct, you propose to take the QML ToolTip Item c++ 
code in my
plasmoid and change it in order to use the Plasma::ToolTipContent, 
windowsPreview
in a way to use it in QML.

Being honest I have already tried to use QML ToolTip in my plasmoid with 
no success,
I couldnt find any documentation  but I will give it a second try by 
examining the
relevant source code...

cheers.




[Attachment #5 (text/html)]

<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>



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic