Re: [Development] QAbstractScrollArea::keyPressEvent
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 documented somewhere) HTH, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com KDAB - The Qt, C++ and OpenGL Experts smime.p7s Description: Firma crittografica S/MIME ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
[Development] QAbstractScrollArea::keyPressEvent
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) { d->vbar->triggerAction(QScrollBar::SliderPageStepSub); } else if (e == QKeySequence::MoveToNextPage) { d->vbar->triggerAction(QScrollBar::SliderPageStepAdd); e is a pointer - I can not compare this to a QKeySequence enum, right ? -- Best regards/Schöne Grüße Martin A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? () ascii ribbon campaign - against html e-mail /\- against proprietary attachments Geschenkideen, Accessoires, Seifen, Kulinarisches: www.lillehus.at ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development