> On 2009-08-20 10:58:15, David Faure wrote: > > No experience with such filters so I can't really review it. I only noticed that the iterators should be const_iterators since they don't modify the list (and then use constBegin/constEnd). > > > > Also, if KModifierKeyInfoProvider are often create/destructed, the list could be a qset to speed up the removeAll(this). I'll take your suggestions into account and commit if it works. I think there's really no way to safely detach an event-filter from QAbstractEventDispatcher. - Michael ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://reviewboard.kde.org/r/930/#review2094 ----------------------------------------------------------- On 2009-08-10 12:11:30, Michael Leupold wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://reviewboard.kde.org/r/930/ > ----------------------------------------------------------- > > (Updated 2009-08-10 12:11:30) > > > Review request for kdelibs. > > > Summary > ------- > > Currently KModifierKeyInfo needs a KApplication to install the event filter and dumps a warning if it isn't available. This patch makes it possible to use it in QApplication-only apps (eg. kdm) by installing the event filter using QAbstractEventDispatcher. > > > Diffs > ----- > > /trunk/KDE/kdelibs/kdeui/util/kmodifierkeyinfoprovider_p.h 1008830 > /trunk/KDE/kdelibs/kdeui/util/kmodifierkeyinfoprovider_x11.cpp 1008830 > > Diff: http://reviewboard.kde.org/r/930/diff > > > Testing > ------- > > > Thanks, > > Michael > >