mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-20 05:11:02 -04:00
Use Qt::KeyboardModifier::NoModifier instead of 0 in RsButtonOnText.cpp
This commit is contained in:
parent
9f607765bc
commit
8265c5ebec
1 changed files with 3 additions and 3 deletions
|
@ -107,7 +107,7 @@ bool RSButtonOnText::eventFilter(QObject *obj, QEvent *event)
|
|||
}
|
||||
if (event->type() == QEvent::MouseButtonPress) {
|
||||
QMouseEvent* mouseEvent = new QMouseEvent(QEvent::MouseButtonPress
|
||||
,QPoint(1,1),Qt::LeftButton,Qt::LeftButton,0);
|
||||
,QPoint(1,1),Qt::LeftButton,Qt::LeftButton,Qt::KeyboardModifier::NoModifier);
|
||||
QPushButton::mousePressEvent(mouseEvent);
|
||||
delete mouseEvent;
|
||||
if (guard) _pressed = true;
|
||||
|
@ -116,7 +116,7 @@ bool RSButtonOnText::eventFilter(QObject *obj, QEvent *event)
|
|||
}
|
||||
if (event->type() == QEvent::MouseButtonRelease) {
|
||||
QMouseEvent* mouseEvent = new QMouseEvent(QEvent::MouseButtonPress
|
||||
,QPoint(1,1),Qt::LeftButton,Qt::LeftButton,0);
|
||||
,QPoint(1,1),Qt::LeftButton,Qt::LeftButton,Qt::KeyboardModifier::NoModifier);
|
||||
QPushButton::mouseReleaseEvent(mouseEvent);
|
||||
delete mouseEvent;
|
||||
if (guard) _pressed = false;
|
||||
|
@ -152,7 +152,7 @@ bool RSButtonOnText::eventFilter(QObject *obj, QEvent *event)
|
|||
}
|
||||
if (_pressed){
|
||||
QMouseEvent* mouseEvent = new QMouseEvent(QEvent::MouseButtonPress
|
||||
,QPoint(1,1),Qt::LeftButton,Qt::LeftButton,0);
|
||||
,QPoint(1,1),Qt::LeftButton,Qt::LeftButton,Qt::KeyboardModifier::NoModifier);
|
||||
QPushButton::mouseReleaseEvent(mouseEvent);
|
||||
delete mouseEvent;
|
||||
//if (guard) emit released();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue