mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Another Qt 4.6 build fix
This commit is contained in:
parent
4980ffcbc0
commit
0db2ae6e57
|
@ -65,7 +65,7 @@ bool MainTabWidget::eventFilter( QObject * obj, QEvent * ev )
|
||||||
if( obj == tabBar() && ev->type() == QEvent::MouseButtonPress )
|
if( obj == tabBar() && ev->type() == QEvent::MouseButtonPress )
|
||||||
{
|
{
|
||||||
QMouseEvent * mev = static_cast< QMouseEvent *>( ev );
|
QMouseEvent * mev = static_cast< QMouseEvent *>( ev );
|
||||||
if( mev->button() == Qt::MiddleButton )
|
if( mev->button() == Qt::MidButton )
|
||||||
{
|
{
|
||||||
emit tabCloseRequested( tabBar()->tabAt( mev->pos() ) );
|
emit tabCloseRequested( tabBar()->tabAt( mev->pos() ) );
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue