20 #include <QMouseEvent> 22 #include <qwt/qwt_event_pattern.h> 43 QwtEventPattern& pattern,
const QEvent* event) {
44 QList<QwtPickerMachine::Command> commands;
46 if (event->type() == QEvent::MouseButtonDblClick) {
47 if (pattern.mouseMatch(QwtEventPattern::MouseSelect1,
48 static_cast<const QMouseEvent*>(event))) {
58 else if (event->type() != QEvent::MouseButtonPress)
59 commands = QwtPickerDragRectMachine::transition(pattern, event);
QList< Command > transition(const QwtEventPattern &pattern, const QEvent *event)