@@ -2016,7 +2016,7 @@ void TerminalDisplay::mousePressEvent(QMouseEvent* ev)
2016
2016
spot->activate (QLatin1String (" click-action" ));
2017
2017
}
2018
2018
}
2019
- else if ( ev->button () == Qt::MidButton )
2019
+ else if ( ev->button () == Qt::MiddleButton )
2020
2020
{
2021
2021
if ( _mouseMarks || (ev->modifiers () & Qt::ShiftModifier) )
2022
2022
emitSelection (true ,ev->modifiers () & Qt::ControlModifier);
@@ -2107,7 +2107,7 @@ void TerminalDisplay::mouseMoveEvent(QMouseEvent* ev)
2107
2107
int button = 3 ;
2108
2108
if (ev->buttons () & Qt::LeftButton)
2109
2109
button = 0 ;
2110
- if (ev->buttons () & Qt::MidButton )
2110
+ if (ev->buttons () & Qt::MiddleButton )
2111
2111
button = 1 ;
2112
2112
if (ev->buttons () & Qt::RightButton)
2113
2113
button = 2 ;
@@ -2149,7 +2149,7 @@ void TerminalDisplay::mouseMoveEvent(QMouseEvent* ev)
2149
2149
if (_actSel == 0 ) return ;
2150
2150
2151
2151
// don't extend selection while pasting
2152
- if (ev->buttons () & Qt::MidButton ) return ;
2152
+ if (ev->buttons () & Qt::MiddleButton ) return ;
2153
2153
2154
2154
extendSelection ( ev->pos () );
2155
2155
}
@@ -2404,9 +2404,9 @@ void TerminalDisplay::mouseReleaseEvent(QMouseEvent* ev)
2404
2404
2405
2405
if ( !_mouseMarks &&
2406
2406
((ev->button () == Qt::RightButton && !(ev->modifiers () & Qt::ShiftModifier))
2407
- || ev->button () == Qt::MidButton ) )
2407
+ || ev->button () == Qt::MiddleButton ) )
2408
2408
{
2409
- emit mouseSignal ( ev->button () == Qt::MidButton ? 1 : 2 ,
2409
+ emit mouseSignal ( ev->button () == Qt::MiddleButton ? 1 : 2 ,
2410
2410
charColumn + 1 ,
2411
2411
charLine + 1 +_scrollBar->value () -_scrollBar->maximum () ,
2412
2412
2 );
0 commit comments