[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegraphics/kviewshell/plugins/dvi
From: Wilfried Huss <Wilfried.Huss () gmx ! at>
Date: 2006-02-28 20:50:23
Message-ID: 1141159823.884172.10045.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 514611 by whuss:
Port of commit 514606
Control + Left Click" for source hyperlinks.
"Middle Click" still works of course.
fixes bug #122791
M +7 -4 dviWidget.cpp
--- trunk/KDE/kdegraphics/kviewshell/plugins/dvi/dviWidget.cpp #514610:514611
@@ -30,9 +30,6 @@
void DVIWidget::mousePressEvent(QMouseEvent* e)
{
- // Call implementation from parent
- DocumentWidget::mousePressEvent(e);
-
// Safety check
if (!pageNumber.isValid())
return;
@@ -46,7 +43,10 @@
}
// Check if the mouse is pressed on a source-hyperlink
- if ((e->button() == Qt::MidButton) && (pageData->sourceHyperLinkList.size() > 0))
+ // source hyperlinks can be invoked with the Middle Mousebutton or alternatively
+ // with Control+Left Mousebutton
+ if ((e->button() == Qt::MidButton || (e->button() == Qt::LeftButton && (e->state() \
& Qt::ControlButton))) + && (pageData->sourceHyperLinkList.size() > 0))
{
int minIndex = 0;
int minimum = 0;
@@ -73,6 +73,9 @@
emit(SRCLink(pageData->sourceHyperLinkList[minIndex].linkText, \
inverseMap(e->pos()), this)); e->accept();
}
+
+ // Call implementation from parent
+ DocumentWidget::mousePressEvent(e);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic