Toolbox.cc 460 Bytes
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1
2
3
4
5
6
7
8
9
10
11
#include "Toolbox.hh"
#include <QtGui>
#include <iostream>

DatacontrolToolboxWidget::DatacontrolToolboxWidget(QWidget* _parent)
    : QWidget(_parent)
{
}


void DatacontrolToolboxWidget::keyPressEvent (QKeyEvent * _event ) {
12
13
14
  // Only react on our own key events
  if ( ( (_event->modifiers() & Qt::ControlModifier) && ( _event->key() == Qt::Key_A ) ) ||
     ( _event->key() == Qt::Key_Delete ) )
15
    emit keyEvent( _event );
16
17
  else
    _event->ignore();
Jan Möbius's avatar
Jan Möbius committed
18
}