Re: [Development] QAbstractScrollArea::keyPressEvent

2018-09-18 Thread Giuseppe D'Angelo via Development
Il 18/09/2018 16:14, Martin Koller ha scritto: e is a pointer - I can not compare this to a QKeySequence enum, right ? You can, just overload the operator== for it. https://code.woboq.org/qt5/include/qt/QtGui/qevent.h.html#_ZeqP9QKeyEventN12QKeySequence11StandardKeyE (No idea if that's

[Development] QAbstractScrollArea::keyPressEvent

2018-09-18 Thread Martin Koller
I'd just like to have someone telling me if I'm completely wrong or if I'm missing something here, please: In QAbstractScrollArea::keyPressEvent(QKeyEvent * e) there is this check: } else if (e == QKeySequence::MoveToPreviousPage) {