<div dir="ltr"><div><div><div><div>Hi Urs<br><br></div>That line is the problem. Reading at the doc about <tt>QHeaderView::ResizeToContents ...</tt><br>The size cannot be changed by the user or programmatically.<br><br></div>is enought resize the column manually after the model is populated and the sort indicator is setted up.<br><br></div>Ps. I canno't commit into master<br><br></div>bye<br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 6 March 2015 at 19:00, Urs Wolfer <span dir="ltr"><<a href="mailto:uwolfer@kde.org" target="_blank">uwolfer@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="font-family:Verdana,Arial,Helvetica,Sans-Serif"><span class="">
<table style="border:1px #c9c399 solid;border-radius:6px" bgcolor="#f9f3c9" cellpadding="12" width="100%">
<tbody><tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://git.reviewboard.kde.org/r/122826/" target="_blank">https://git.reviewboard.kde.org/r/122826/</a>
</td>
</tr>
</tbody></table>
<br>
</span><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;margin:0;line-height:inherit;white-space:inherit">Will you commit this change into master?</p></pre>
<br>
<div>
<table bgcolor="white" border="0" width="100%">
<thead>
<tr>
<th colspan="4" style="border-bottom:1px solid #c0c0c0;font-size:9pt;padding:4px 8px;text-align:left" bgcolor="#F0F0F0">
<a href="https://git.reviewboard.kde.org/r/122826/diff/1/?file=353016#file353016line1129" style="color:black;font-weight:bold;text-decoration:underline" target="_blank">mainwindow.cpp</a>
<span style="font-weight:normal">
(Diff revision 1)
</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">QWidget* MainWindow::newConnectionWidget()</pre></td>
</tr>
</tbody>
<tbody>
<tr>
<th style="border-right:1px solid #c0c0c0" bgcolor="#ebb1ba" align="right"><font>1129</font></th>
<td bgcolor="#ffc5ce" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0"> <span>m_newConnectionTableView</span><span>-></span><span>horizontalHeader</span><span>()</span><span>-></span><span>setResizeMode</span><span>(</span><span>QHeaderView</span><span>::</span><span>ResizeToContents</span><span>);</span></pre></td>
<th style="border-left:1px solid #c0c0c0;border-right:1px solid #c0c0c0" bgcolor="#ebb1ba" align="right"><font></font></th>
<td bgcolor="#ffc5ce" width="50%"><pre style="font-size:8pt;line-height:140%;margin:0"></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;margin:0;line-height:inherit;white-space:inherit">Are you sure this line isn't needed anymore?</p></pre><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>
<p>- Urs Wolfer</p></font></span><span class="">
<br>
<p>On March 5th, 2015, 4:57 p.m. UTC, Luca Sartorelli wrote:</p>
<table style="border:1px #888a85 solid;border-radius:6px" bgcolor="#fefadf" cellpadding="12" cellspacing="0" width="100%">
<tbody><tr>
<td>
<div>Review request for KDE Base Apps, KDE Utils, Network Management, and Urs Wolfer.</div>
<div>By Luca Sartorelli.</div>
<p style="color:grey"><i>Updated March 5, 2015, 4:57 p.m.</i></p>
<div style="margin-top:1.5em">
<b style="color:#575012;font-size:10pt;margin-top:1.5em">Bugs: </b>
<a href="http://bugs.kde.org/show_bug.cgi?id=339392" target="_blank">339392</a>
</div>
<div style="margin-top:1.5em">
<b style="color:#575012;font-size:10pt">Repository: </b>
krdc
</div>
<h1 style="color:#575012;font-size:10pt;margin-top:1.5em">Description </h1>
<table style="border:1px solid #b8b5a0" bgcolor="#ffffff" cellpadding="10" cellspacing="0" width="100%">
<tbody><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;margin:0;line-height:inherit;white-space:inherit">Bug 339392 - krdc main window columns are not resizable</p></pre>
</td>
</tr>
</tbody></table>
<h1 style="color:#575012;font-size:10pt;margin-top:1.5em">Testing </h1>
<table style="border:1px solid #b8b5a0" bgcolor="#ffffff" cellpadding="10" cellspacing="0" width="100%">
<tbody><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;margin:0;line-height:inherit;white-space:inherit">The columns of the main grid in the main windows are resizable, and when the application starts, are sized nicely as without the patch.
On a new connect window, the column are not resize (same as before), but this time is possible to resize them, by the mouse</p></pre>
</td>
</tr>
</tbody></table>
<h1 style="color:#575012;font-size:10pt;margin-top:1.5em">Diffs </h1>
<ul style="margin-left:3em;padding-left:0">
<li>mainwindow.cpp <span style="color:grey">(acc89ae)</span></li>
</ul>
<p><a href="https://git.reviewboard.kde.org/r/122826/diff/" style="margin-left:3em" target="_blank">View Diff</a></p>
</td>
</tr>
</tbody></table>
</span></div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">P Please consider the environment before printing this e-mail</div>
</div>