Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 1.3.1
-
None
-
2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
-
fb82e101eaf183bd923d03fd976f6d06512af515 1bb0d91900f5e3e9a0c905c4d98f1f40d33f200a
Description
It seems like the mouse back and forward (Qt::XButton1 and Qt::XButton2) are meant to work in the help browser (QtAssistant) but aren't very usefull since they stop working of your mouse moves (even slightly) between the button press and release. And in the source editor window, it's not even handled at all.
I have observed that for example in firefox, this button is handled in the press event instead of the release. I have patched 1.3.1 to do it similarly:
diff -r qt-creator-1.3.1-src/src/plugins/texteditor/basetexteditor.cpp qt-creator-1.3.1-src.mod/src/plugins/texteditor/basetexteditor.cpp
2950a2951,2963
>
> if (e->button() == Qt::XButton1)
>
> if (e->button() == Qt::XButton2)
>
diff -r qt-creator-1.3.1-src/src/shared/help/helpviewer.cpp qt-creator-1.3.1-src.mod/src/shared/help/helpviewer.cpp
339,348d338
< if (e->button() == Qt::XButton1)
<
< if (e->button() == Qt::XButton2)
<
364a355,365
> if (event->button() == Qt::XButton1)
>
> if (event->button() == Qt::XButton2)
Attachments
Issue Links
- resulted in
-
QTBUG-9214 Handle forward/backward mouse buttons on press on Linux
- Closed