accel problems: might be qt-copt, might be kdelibs

Ingo Klöcker kloecker at kde.org
Sun Oct 13 12:52:03 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 13 October 2002 13:11, Alexander Neundorf wrote:
> On Sunday 13 October 2002 12:33, Ingo Klöcker wrote:
> ...
>
> > The problem is that we want to override all actions of the listview
> > with our own KActions. And these KActions are defined in
> > KMMainWindow because it handles the actions for all our widgets. I
> > guess we will have to overwrite KListView::keyPressEvent() in order
> > to prevent the listview from stealing our keys. The following crude
> > patch which simply hides all key press events from our listview
> > seems to fix our problems AFAICS.
> >
> > +  virtual void keyPressEvent( QKeyEvent* ) {};
>
> Shouldn't it be keyPressEvent(QKEyEvent *e) { e->ignore();}  ?

Yes, you are right.

Regards,
Ingo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9qV5oGnR+RTDgudgRAh7LAJkBtjRI0pbud1+VK2j3AdmuLCcQIQCg2fiW
a+zfYOblaeiU5Z4qtsQ9tk0=
=5TP6
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list