[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 122791] cannot start inverse search
From:       Wilfried Huss <Wilfried.Huss () gmx ! at>
Date:       2006-02-28 20:43:04
Message-ID: 20060228204304.2231.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=122791         
Wilfried.Huss gmx at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From Wilfried.Huss gmx at  2006-02-28 21:43 -------
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