[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Review Request: Possibility to change an element ID of svg image in IconWidget
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2012-10-25 20:00:25
Message-ID: 20121025200025.11287.9082 () vidsolbach ! de
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
> On Oct. 25, 2012, 11:36 a.m., Aaron J. Seigo wrote:
> > the real fix here is to not use IconWidget :) that's a QGraphicsWidget =
thing and will need to be replaced eventually anyways.
> > =
> > this should be using the Button QML element, which does support using S=
VG files.
> =
> Dmitry Ashkadov wrote:
> IconWidget supports QAction so it's possible to handle global shortcu=
ts. Does QML Button support QAction? Or is is another way to handle global =
shortcuts from QML?
not automatically, no. but QActions are QObjects, so you can attach to thei=
r signals in the QML.
- Aaron J.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/107017/#review20863
-----------------------------------------------------------
On Oct. 24, 2012, 1:02 p.m., Dmitry Ashkadov wrote:
> =
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/107017/
> -----------------------------------------------------------
> =
> (Updated Oct. 24, 2012, 1:02 p.m.)
> =
> =
> Review request for kdelibs and Plasma.
> =
> =
> Description
> -------
> =
> New System tray uses IconWidget QML item, but it isn't possible to set sv=
g image with specified element id. Now I use Svg QML item to load svg and t=
hen pass icon to IconWidget, moreover svg is converted to pixmap (: . At th=
e same time IconWidget can handle svg images, so these small changes make m=
e happy :) because I will can eliminate usage of Svg QML items for arrow an=
d Dbus tasks in system tray. =
> =
> =
> Diffs
> -----
> =
> plasma/widgets/iconwidget.h 78f392e =
> plasma/widgets/iconwidget.cpp a2092a4 =
> =
> Diff: http://git.reviewboard.kde.org/r/107017/diff/
> =
> =
> Testing
> -------
> =
> =
> Thanks,
> =
> Dmitry Ashkadov
> =
>
[Attachment #5 (text/html)]
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/107017/">http://git.reviewboard.kde.org/r/107017/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<p style="margin-top: 0;">On October 25th, 2012, 11:36 a.m., <b>Aaron J. Seigo</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; \
white-space: -o-pre-wrap; word-wrap: break-word;">the real fix here is to not use IconWidget :) \
that's a QGraphicsWidget thing and will need to be replaced eventually anyways.
this should be using the Button QML element, which does support using SVG files. </pre>
</blockquote>
<p>On October 25th, 2012, 12:55 p.m., <b>Dmitry Ashkadov</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; \
white-space: -o-pre-wrap; word-wrap: break-word;">IconWidget supports QAction so it's \
possible to handle global shortcuts. Does QML Button support QAction? Or is is another way to \
handle global shortcuts from QML?</pre> </blockquote>
</blockquote>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; \
white-space: -o-pre-wrap; word-wrap: break-word;">not automatically, no. but QActions are \
QObjects, so you can attach to their signals in the QML.</pre> <br />
<p>- Aaron J.</p>
<br />
<p>On October 24th, 2012, 1:02 p.m., Dmitry Ashkadov wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: \
url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black solid;"> <tr>
<td>
<div>Review request for kdelibs and Plasma.</div>
<div>By Dmitry Ashkadov.</div>
<p style="color: grey;"><i>Updated Oct. 24, 2012, 1:02 p.m.</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px \
solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">New System tray uses \
IconWidget QML item, but it isn't possible to set svg image with specified element id. Now \
I use Svg QML item to load svg and then pass icon to IconWidget, moreover svg is converted to \
pixmap (: . At the same time IconWidget can handle svg images, so these small changes make me \
happy :) because I will can eliminate usage of Svg QML items for arrow and Dbus tasks in system \
tray. </pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>plasma/widgets/iconwidget.h <span style="color: grey">(78f392e)</span></li>
<li>plasma/widgets/iconwidget.cpp <span style="color: grey">(a2092a4)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/107017/diff/" style="margin-left: 3em;">View \
Diff</a></p>
</td>
</tr>
</table>
</div>
</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