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

List:       koffice-devel
Subject:    Re: Tablet in KOffice2
From:       Thomas Zander <zander () kde ! org>
Date:       2007-03-03 19:25:52
Message-ID: 200703032025.52548.zander () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Friday 02 March 2007 15:09, Thomas Zander wrote:
> For the people that work with a tablet and want to try this, there are some
> issues in Qt that I want to make people aware of.
> * Qt4.2.2 makes us switch back to mouse as soon as the tablet leaves the
> canvas.  This means that you can't access the tool-options :(
> This is fixed in 4.3-rsync already. I made a workaround for qt-copy [1]
[]
> 1) workaround for the first bug;

The patch I provided previously was incorrect, as the type can now be 
uninitialized and cause unexpected events to be fired.
Fixed version;
Index: src/gui/kernel/qapplication_x11.cpp
===================================================================
--- src/gui/kernel/qapplication_x11.cpp (revision 638087)
+++ src/gui/kernel/qapplication_x11.cpp (working copy)
@@ -3408,7 +3408,7 @@
     } else if (event->type == EnterNotify || event->type == LeaveNotify) {
         XEvent *xevent = (XEvent *)event;
         //unsigned int xstate = event->xcrossing.state;
-        type = QEvent::MouseMove;
+        type = QEvent::None;
         pos.rx() = xevent->xcrossing.x;
         pos.ry() = xevent->xcrossing.y;
         pos = d->mapFromWS(pos);

-- 
Thomas Zander

[Attachment #5 (application/pgp-signature)]

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


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

Configure | About | News | Add a list | Sponsored by KoreLogic