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

List:       kfm-devel
Subject:    Re: Review Request 119115: DolphinTabWidget
From:       "Frank Reininghaus" <frank78ac () googlemail ! com>
Date:       2014-07-20 21:45:40
Message-ID: 20140720214540.14616.87059 () probe ! kde ! org
[Download RAW message or body]

--===============7863754246837541919==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119115/#review62752
-----------------------------------------------------------


Thanks for the update! Sorry for the late response - I was a bit busy at work last \
week.

Looks good already (and much better than the last version, thanks for fixing the \
issues!). I still have a few questions though.


dolphin/src/dolphinmainwindow.cpp
<https://git.reviewboard.kde.org/r/119115/#comment43495>

    Maybe the active view could be a parameter of the signal, i.e.,
    
    activeViewChanged(DolphinViewContainer* newViewContainer)?
    
    This access would not be needed then. And maybe the activeViewContainer() \
function in DolphinTabWidget could even be removed?



dolphin/src/dolphinmainwindow.cpp
<https://git.reviewboard.kde.org/r/119115/#comment43496>

    The old code simply kept the connections to the signals of all views and URL \
navigators at all times.  
    Could you comment on why you propose to introduce the disconnections and \
connections now?



dolphin/src/dolphintabwidget.cpp
<https://git.reviewboard.kde.org/r/119115/#comment43497>

    As far as I can see, this signal does not exist at all?



dolphin/src/dolphintabwidget.cpp
<https://git.reviewboard.kde.org/r/119115/#comment43498>

    It seems that this signal does not exist either.


- Frank Reininghaus


On July 15, 2014, 9:26 p.m., Emmanuel Pescosta wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119115/
> -----------------------------------------------------------
> 
> (Updated July 15, 2014, 9:26 p.m.)
> 
> 
> Review request for Dolphin.
> 
> 
> Repository: kde-baseapps
> 
> 
> Description
> -------
> 
> Implemented DolphinTabWidget class to encapsulate the tab handling from \
> DolphinMainWindow. 
> Removed the method for text squeezing because the QTabBar can do this \
> automatically. 
> The tab sizes are different, any idea how to fix this?
> 
> 
> Diffs
> -----
> 
> dolphin/src/CMakeLists.txt 7b0210a 
> dolphin/src/dolphinmainwindow.h 9c7f185 
> dolphin/src/dolphinmainwindow.cpp 41bd626 
> dolphin/src/dolphintabwidget.h PRE-CREATION 
> dolphin/src/dolphintabwidget.cpp PRE-CREATION 
> 
> Diff: https://git.reviewboard.kde.org/r/119115/diff/
> 
> 
> Testing
> -------
> 
> Works great so far.
> 
> 
> Thanks,
> 
> Emmanuel Pescosta
> 
> 


--===============7863754246837541919==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit




<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 \
solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">  \
<tr>  <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/119115/">https://git.reviewboard.kde.org/r/119115/</a>
  </td>
    </tr>
   </table>
   <br />





 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">Thanks for the update! Sorry for the late response - I was a bit busy at \
work last week.</p> <p style="padding: 0;text-rendering: inherit;margin: \
0;line-height: inherit;white-space: inherit;">Looks good already (and much better \
than the last version, thanks for fixing the issues!). I still have a few questions \
though.</p></pre>  <br />







<div>



<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="https://git.reviewboard.kde.org/r/119115/diff/3/?file=290350#file290350line1226" \
style="color: black; font-weight: bold; text-decoration: \
underline;">dolphin/src/dolphinmainwindow.cpp</a>  <span style="font-weight: \
normal;">

     (Diff revision 3)

    </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; ">void \
DolphinMainWindow::slotPlaceActivated(const KUrl&amp; url)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2">1219</font></th>  <td bgcolor="#fdfebc" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n"><span \
class="hl">setActive</span>ViewContainer</span><span class="p"><span \
class="hl">(</span></span><span class="n">tab<span class="hl">Page</span></span><span \
class="o">-&gt;</span><span class="n">activeViewContainer</span><span \
class="p">()<span class="hl">)</span>;</span></pre></td>  <th bgcolor="#e9eaa8" \
style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" \
align="right"><font size="2">920</font></th>  <td bgcolor="#fdfebc" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n"><span \
class="hl">Dolphin</span>ViewContainer</span><span class="o"><span \
class="hl">*</span></span><span class="hl"> </span><span class="n"><span \
class="hl">newViewContainer</span></span><span class="hl"> </span><span \
class="o"><span class="hl">=</span></span><span class="hl"> </span><span \
class="n"><span class="hl">m_</span>tab<span class="hl">Widget</span></span><span \
class="o">-&gt;</span><span class="n">activeViewContainer</span><span \
class="p">();</span></pre></td>  </tr>

 </tbody>

</table>

 <div style="margin-left: 2em;">

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Maybe \
the active view could be a parameter of the signal, i.e.,</p> <p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">activeViewChanged(DolphinViewContainer* newViewContainer)?</p> <p \
style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: \
inherit;">This access would not be needed then. And maybe the activeViewContainer() \
function in DolphinTabWidget could even be removed?</p></pre>  </div>
</div>
<br />

<div>



<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="https://git.reviewboard.kde.org/r/119115/diff/3/?file=290350#file290350line1231" \
style="color: black; font-weight: bold; text-decoration: \
underline;">dolphin/src/dolphinmainwindow.cpp</a>  <span style="font-weight: \
normal;">

     (Diff revision 3)

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

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

   <td colspan="2"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void \
DolphinMainWindow::setActiveViewContainer(DolphinViewContainer* \
viewContainer)</pre></td>  <td colspan="2"><pre style="font-size: 8pt; line-height: \
140%; margin: 0; "></pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2">1224</font></th>  <td bgcolor="#fdfebc" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n"><span \
class="hl">Q_ASSERT</span></span><span class="p"><span \
class="hl">(</span></span><span class="n"><span \
class="hl">v</span>iewContainer</span><span class="p">)<span \
class="hl">;</span></span></pre></td>  <th bgcolor="#e9eaa8" style="border-left: 1px \
solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font \
size="2">925</font></th>  <td bgcolor="#fdfebc" width="50%"><pre style="font-size: \
8pt; line-height: 140%; margin: 0; ">    <span class="k"><span \
class="hl">if</span></span><span class="hl"> </span><span class="p"><span \
class="hl">(</span></span><span class="n"><span \
class="hl">oldV</span>iewContainer</span><span class="p">)</span><span class="hl"> \
</span><span class="p"><span class="hl">{</span></span></pre></td>  </tr>

 </tbody>

</table>

 <div style="margin-left: 2em;">

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">The \
old code simply kept the connections to the signals of all views and URL navigators \
at all times.</p> <p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Could you comment on why you propose to introduce the \
disconnections and connections now?</p></pre>  </div>
</div>
<br />

<div>



<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="https://git.reviewboard.kde.org/r/119115/diff/3/?file=290352#file290352line37" \
style="color: black; font-weight: bold; text-decoration: \
underline;">dolphin/src/dolphintabwidget.cpp</a>  <span style="font-weight: normal;">

     (Diff revision 3)

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



 
 

 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2"></font></th>  <td bgcolor="#c5ffc4" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>  <th \
bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">37</font></th>  <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span \
class="n">connect</span><span class="p">(</span><span class="k">this</span><span \
class="p">,</span> <span class="n">SIGNAL</span><span class="p">(</span><span \
class="n">tabCloseRequested</span><span class="p">(</span><span \
class="kt">int</span><span class="p">)),</span></pre></td>  </tr>

 </tbody>

</table>

 <div style="margin-left: 2em;">

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">As \
far as I can see, this signal does not exist at all?</p></pre>  </div>
</div>
<br />

<div>



<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="https://git.reviewboard.kde.org/r/119115/diff/3/?file=290352#file290352line39" \
style="color: black; font-weight: bold; text-decoration: \
underline;">dolphin/src/dolphintabwidget.cpp</a>  <span style="font-weight: normal;">

     (Diff revision 3)

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



 
 

 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2"></font></th>  <td bgcolor="#c5ffc4" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>  <th \
bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">39</font></th>  <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span \
class="n">connect</span><span class="p">(</span><span class="k">this</span><span \
class="p">,</span> <span class="n">SIGNAL</span><span class="p">(</span><span \
class="n">currentChanged</span><span class="p">(</span><span \
class="kt">int</span><span class="p">)),</span></pre></td>  </tr>

 </tbody>

</table>

 <div style="margin-left: 2em;">

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">It \
seems that this signal does not exist either.</p></pre>  </div>
</div>
<br />



<p>- Frank Reininghaus</p>


<br />
<p>On July 15th, 2014, 9:26 p.m. UTC, Emmanuel Pescosta wrote:</p>









<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: \
1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;">  <tr>
  <td>

<div>Review request for Dolphin.</div>
<div>By Emmanuel Pescosta.</div>


<p style="color: grey;"><i>Updated July 15, 2014, 9:26 p.m.</i></p>









<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
kde-baseapps
</div>


<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;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Implemented DolphinTabWidget class to encapsulate the \
tab handling from DolphinMainWindow.</p> <p style="padding: 0;text-rendering: \
inherit;margin: 0;line-height: inherit;white-space: inherit;">Removed the method for \
text squeezing because the QTabBar can do this automatically.</p> <p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">The \
tab sizes are different, any idea how to fix this?</p></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;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Works great so far.</p></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>dolphin/src/CMakeLists.txt <span style="color: grey">(7b0210a)</span></li>

 <li>dolphin/src/dolphinmainwindow.h <span style="color: grey">(9c7f185)</span></li>

 <li>dolphin/src/dolphinmainwindow.cpp <span style="color: \
grey">(41bd626)</span></li>

 <li>dolphin/src/dolphintabwidget.h <span style="color: \
grey">(PRE-CREATION)</span></li>

 <li>dolphin/src/dolphintabwidget.cpp <span style="color: \
grey">(PRE-CREATION)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/119115/diff/" style="margin-left: \
3em;">View Diff</a></p>






  </td>
 </tr>
</table>








  </div>
 </body>
</html>


--===============7863754246837541919==--


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

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