[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegraphics/kviewshell/plugins/pdf
From: Wilfried Huss <Wilfried.Huss () gmx ! at>
Date: 2006-02-28 20:52:45
Message-ID: 1141159965.822302.10323.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 514612 by whuss:
Control + Left Click" for source hyperlinks.
"Middle Click" still works of course.
M +7 -4 pdfWidget.cpp
--- trunk/KDE/kdegraphics/kviewshell/plugins/pdf/pdfWidget.cpp #514611:514612
@@ -39,20 +39,23 @@
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() == Qt::MidButton)
+ // 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))
{
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