Hi again,<br><br>Here's the isolated patch derived from Jan's one. Seems to be ok here, doesn't break the Ctrl click previous behaviour.<br><br>What do you think?<br>(Note I'm not used to Qt programming, nor event Qt programming, so if my small thumbResizeMode() small method should be written differently, please feel free to advice).
<br><br>################################"""<br>Index: ThumbnailView/ThumbnailWidget.cpp<br>===================================================================<br>--- ThumbnailView/ThumbnailWidget.cpp (révision 662469)
<br>+++ ThumbnailView/ThumbnailWidget.cpp (copie de travail)<br>@@ -588,9 +591,14 @@<br> return height() / cellHeight();<br> }<br> <br>+bool ThumbnailView::ThumbnailWidget::thumbResizeMode(QMouseEvent* event)<br>+{
<br>+ return (event->button() & MidButton) || (event->state() == (Qt::ControlButton|Qt::AltButton));<br>+}<br>+<br> void ThumbnailView::ThumbnailWidget::mousePressEvent( QMouseEvent* event )<br> {<br>- if (event->button() & MidButton )
<br>+ if ( thumbResizeMode(event) )<br> _mouseHandler = &_gridResizeInteraction;<br> else<br> _mouseHandler = &_selectionInteraction;<br>Index: ThumbnailView/ThumbnailWidget.h<br>===================================================================
<br>--- ThumbnailView/ThumbnailWidget.h (révision 662469)<br>+++ ThumbnailView/ThumbnailWidget.h (copie de travail)<br>@@ -139,6 +139,7 @@<br> void updateCellSize();<br> QStringList vectorToList( const QValueVector<QString>& ) const;
<br> void updateIndexCache();<br>+ bool thumbResizeMode(QMouseEvent* event);<br> <br> protected slots:<br> void emitDateChange( int, int );<br>########################<br clear="all"><br>-- <br>Baptiste <Batmat> MATHUS
<br>BMathus at Batmat point net - <a href="http://batmat.net">http://batmat.net</a><br>---------<br>Si chacun de nous a une idée et que nous les partageons, nous<br>repartirons tous les deux avec deux idées... C'est ça le Libre.