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

List:       kde-panel-devel
Subject:    Re: Review Request: Add fromTheme property to QIconItem in
From:       "Mark Gaiser" <markg85 () gmail ! com>
Date:       2011-11-02 22:14:45
Message-ID: 20111102221445.17927.38094 () vidsolbach ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> On Nov. 2, 2011, 9:58 p.m., Christoph Feck wrote:
> > plasma/declarativeimports/qtextracomponents/qiconitem.cpp, line 37
> > <http://git.reviewboard.kde.org/r/103009/diff/2/?file=40071#file40071line37>
> > 
> > Is there any specific reason why this isn't "const QVariant &icon"? All used \
> > QVariant methods are const.

fixed and pushed.


- Mark


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103009/#review7884
-----------------------------------------------------------


On Nov. 1, 2011, 6:43 p.m., Mark Gaiser wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103009/
> -----------------------------------------------------------
> 
> (Updated Nov. 1, 2011, 6:43 p.m.)
> 
> 
> Review request for KDE Runtime and Plasma.
> 
> 
> Description
> -------
> 
> Hi,
> 
> I found it very strange that QIcon::fromTheme was "just working". Sadly in KDE's \
> brand new PlasmaComponents it was simply impossible to use the system icons without \
> using plasma to view the QML. This patch adds a property to QIconItem named: \
> "fromTheme" which allows you to get the icons from the theme you currently use. \
> This patch alone isn't helping a lot of people but i have a second patch ready for \
> PlasmaComponents.Button to make use of this. 
> Oke to commit?
> 
> 
> Diffs
> -----
> 
> plasma/declarativeimports/qtextracomponents/qiconitem.h 9972a98 
> plasma/declarativeimports/qtextracomponents/qiconitem.cpp d72381e 
> 
> Diff: http://git.reviewboard.kde.org/r/103009/diff/diff
> 
> 
> Testing
> -------
> 
> Tested it with a bunch of different icons in and it all just seems to work fine.
> 
> 
> Thanks,
> 
> Mark Gaiser
> 
> 


[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/103009/">http://git.reviewboard.kde.org/r/103009/</a>
  </td>
    </tr>
   </table>
   <br />








<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <p style="margin-top: 0;">On November 2nd, 2011, 9:58 p.m., <b>Christoph \
Feck</b> wrote:</p>  <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;">  



<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;">  <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;">  <a \
href="http://git.reviewboard.kde.org/r/103009/diff/2/?file=40071#file40071line37" \
style="color: black; font-weight: bold; text-decoration: \
underline;">plasma/declarativeimports/qtextracomponents/qiconitem.cpp</a>  <span \
style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; \
">QIconItem::QIconItem(QDeclarativeItem *parent)</pre></td>

  </tr>
 </tbody>



 
 




 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2">37</font></th>  <td bgcolor="#fdfebc" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="kt">void</span> \
<span class="n">QIconItem</span><span class="o">::</span><span \
class="n">setIcon</span><span class="p">(</span><span class="k"><span \
class="hl">const</span></span><span class="hl"> </span><span class="n"><span \
class="hl">QIcon</span></span> <span class="o">&amp;</span><span \
class="n">icon</span><span class="p">)</span></pre></td>  <th bgcolor="#e9eaa8" \
style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" \
align="right"><font size="2">37</font></th>  <td bgcolor="#fdfebc" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="kt">void</span> \
<span class="n">QIconItem</span><span class="o">::</span><span \
class="n">setIcon</span><span class="p">(</span><span class="n"><span \
class="hl">QVariant</span></span> <span class="o">&amp;</span><span \
class="n">icon</span><span class="p">)</span></pre></td>  </tr>

 </tbody>

</table>

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Is there any specific \
reason why this isn&#39;t &quot;const QVariant &amp;icon&quot;? All used QVariant \
methods are const.</pre>  </blockquote>





</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">fixed and \
pushed.</pre> <br />




<p>- Mark</p>


<br />
<p>On November 1st, 2011, 6:43 p.m., Mark Gaiser 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 KDE Runtime and Plasma.</div>
<div>By Mark Gaiser.</div>


<p style="color: grey;"><i>Updated Nov. 1, 2011, 6:43 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;">Hi,

I found it very strange that QIcon::fromTheme was &quot;just working&quot;. Sadly in \
KDE&#39;s brand new PlasmaComponents it was simply impossible to use the system icons \
without using plasma to view the QML. This patch adds a property to QIconItem named: \
&quot;fromTheme&quot; which allows you to get the icons from the theme you currently \
use. This patch alone isn&#39;t helping a lot of people but i have a second patch \
ready for PlasmaComponents.Button to make use of this.

Oke to commit?</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </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;">Tested it with a bunch of different icons in and it all just seems to \
work fine.</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/declarativeimports/qtextracomponents/qiconitem.h <span style="color: \
grey">(9972a98)</span></li>

 <li>plasma/declarativeimports/qtextracomponents/qiconitem.cpp <span style="color: \
grey">(d72381e)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/103009/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