Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
};
virtual ~QVLCTreeView() {};
};
virtual ~QVLCTreeView() {};
- void mouseReleaseEvent(QMouseEvent* e )
+ void mouseReleaseEvent( QMouseEvent* e )
{
if( e->button() & Qt::RightButton )
{
{
if( e->button() & Qt::RightButton )
{
}
QTreeView::mouseReleaseEvent( e );
}
}
QTreeView::mouseReleaseEvent( e );
}
+
+ void mousePressEvent( QMouseEvent* e )
+ {
+ if( e->button() & Qt::LeftButton )
+ {
+ if( !indexAt( QPoint( e->x(), e->y() ) ).isValid() )
+ clearSelection();
+ }
+ QTreeView::mousePressEvent( e );
+ }
signals:
void rightClicked( QModelIndex, QPoint );
};
signals:
void rightClicked( QModelIndex, QPoint );
};