[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdegraphics/kdvi
From: Wilfried Huss <Wilfried.Huss () gmx ! at>
Date: 2006-02-28 20:42:54
Message-ID: 1141159374.825363.8764.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 514606 by whuss:
"Control + Left Click" for source hyperlinks.
"Middle Click" still works of course.
BUG: 122791
M +7 -4 dviWidget.cpp
--- branches/KDE/3.5/kdegraphics/kdvi/dviWidget.cpp #514605:514606
@@ -30,9 +30,6 @@
void DVIWidget::mousePressEvent(QMouseEvent* e)
{
- // Call implementation from parent
- DocumentWidget::mousePressEvent(e);
-
// pageNr == 0 indicated an invalid page (e.g. page number not yet set)
if (pageNr == 0)
return;
@@ -46,7 +43,10 @@
}
// Check if the mouse is pressed on a source-hyperlink
- if ((e->button() == MidButton) && (pageData->sourceHyperLinkList.size() > 0))
+ // source hyperlinks can be invoked with the Middle Mousebutton or alternatively
+ // with ALT+Left Mousebutton
+ if ((e->button() == MidButton || (e->button() == LeftButton && (e->state() & ControlButton)))
+ && (pageData->sourceHyperLinkList.size() > 0))
{
int minIndex = 0;
int minimum = 0;
@@ -73,6 +73,9 @@
emit(SRCLink(pageData->sourceHyperLinkList[minIndex].linkText, e, 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