[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/kviewshell-0.7/kviewshell/plugins/pdf
From: Wilfried Huss <Wilfried.Huss () gmx ! at>
Date: 2006-02-28 21:01:31
Message-ID: 1141160491.514077.11508.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 514616 by whuss:
Control + Left Click" for source hyperlinks.
"Middle Click" still works of course.
M +6 -4 pdfWidget.cpp
--- branches/work/kviewshell-0.7/kviewshell/plugins/pdf/pdfWidget.cpp #514615:514616
@@ -37,20 +37,22 @@
void PdfWidget::mousePressEvent(QMouseEvent* e)
{
- // Call implementation from parent
- DocumentWidget::mousePressEvent(e);
-
// Safety check
if (!pageNumber.isValid())
return;
// Check if the mouse is pressed on a source-hyperlink
- if (e->button() == MidButton)
+ // source hyperlinks can be invoked with the Middle Mousebutton or alternatively
+ // with Control+Left Mousebutton
+ if (e->button() == MidButton || (e->button() == LeftButton && (e->state() & ControlButton)))
{
PdfPageCache* pdfCache = static_cast<PdfPageCache*>(documentCache);
pdfCache->inverseSearch(pageNumber, inverseMap(e->pos()), true);
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