Qt::MidButton is deprecated. Use Qt::MiddleButton instead.
This commit is contained in:
committed by
wwmayer
parent
d4acb6e489
commit
5032a8e31f
@@ -963,7 +963,7 @@ void PythonConsole::changeEvent(QEvent *e)
|
||||
|
||||
void PythonConsole::mouseReleaseEvent( QMouseEvent *e )
|
||||
{
|
||||
if (e->button() == Qt::MidButton && e->spontaneous())
|
||||
if (e->button() == Qt::MiddleButton && e->spontaneous())
|
||||
{
|
||||
// on Linux-like systems the middle mouse button is typically connected to a paste operation
|
||||
// which will insert some text at the mouse position
|
||||
|
||||
@@ -206,7 +206,7 @@ MouseP::mouseButtonEvent(QMouseEvent * event)
|
||||
case Qt::RightButton:
|
||||
this->mousebutton->setButton(SoMouseButtonEvent::BUTTON2);
|
||||
break;
|
||||
case Qt::MidButton:
|
||||
case Qt::MiddleButton:
|
||||
this->mousebutton->setButton(SoMouseButtonEvent::BUTTON3);
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -358,12 +358,12 @@ void ImageView::mousePressEvent(QMouseEvent* cEvent)
|
||||
_currY = box_y;
|
||||
switch(cEvent->buttons())
|
||||
{
|
||||
case Qt::MidButton:
|
||||
case Qt::MiddleButton:
|
||||
_currMode = panning;
|
||||
this->setCursor(QCursor(Qt::ClosedHandCursor));
|
||||
startDrag();
|
||||
break;
|
||||
//case Qt::LeftButton | Qt::MidButton:
|
||||
//case Qt::LeftButton | Qt::MiddleButton:
|
||||
// _currMode = zooming;
|
||||
// break;
|
||||
case Qt::LeftButton:
|
||||
@@ -392,7 +392,7 @@ void ImageView::mouseDoubleClickEvent(QMouseEvent* cEvent)
|
||||
int box_y = cEvent->y() - offset.y();
|
||||
_currX = box_x;
|
||||
_currY = box_y;
|
||||
if(cEvent->button() == Qt::MidButton)
|
||||
if(cEvent->button() == Qt::MiddleButton)
|
||||
{
|
||||
double icX = _pGLImageBox->WCToIC_X(_currX);
|
||||
double icY = _pGLImageBox->WCToIC_Y(_currY);
|
||||
|
||||
@@ -247,7 +247,7 @@ WebView::WebView(QWidget *parent)
|
||||
void WebView::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
#ifdef QTWEBKIT
|
||||
if (event->button() == Qt::MidButton) {
|
||||
if (event->button() == Qt::MiddleButton) {
|
||||
QWebHitTestResult r = page()->mainFrame()->hitTestContent(event->pos());
|
||||
if (!r.linkUrl().isEmpty()) {
|
||||
openLinkInNewWindow(r.linkUrl());
|
||||
|
||||
Reference in New Issue
Block a user