forked from qt-creator/qt-creator
Help: Replace Qt::MidButton by Qt::MiddleButton
Task-number: QTCREATORBUG-24098 Change-Id: I46e06ec1402be345ebd1e4543ed67a726caa42a7 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -216,7 +216,7 @@ bool SearchWidget::eventFilter(QObject *o, QEvent *e)
|
||||
if (!link.isEmpty() || link.isValid()) {
|
||||
bool controlPressed = me->modifiers() & Qt::ControlModifier;
|
||||
if ((me->button() == Qt::LeftButton && controlPressed)
|
||||
|| (me->button() == Qt::MidButton)) {
|
||||
|| (me->button() == Qt::MiddleButton)) {
|
||||
emit linkActivated(link, currentSearchTerms(), true/*newPage*/);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -443,7 +443,7 @@ void TextBrowserHelpWidget::mouseReleaseEvent(QMouseEvent *e)
|
||||
bool controlPressed = e->modifiers() & Qt::ControlModifier;
|
||||
const QString link = linkAt(e->pos());
|
||||
if (m_parent->isActionVisible(HelpViewer::Action::NewPage)
|
||||
&& (controlPressed || e->button() == Qt::MidButton) && !link.isEmpty()) {
|
||||
&& (controlPressed || e->button() == Qt::MiddleButton) && !link.isEmpty()) {
|
||||
emit m_parent->newPageRequested(QUrl(link));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user