Commit a419e01f authored by Dirk Wilden's avatar Dirk Wilden
Browse files

removed debug code

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@3953 383ad7c9-94d9-4d36-a494-682f7c89f535
parent cce7291d
...@@ -443,13 +443,13 @@ CoreWidget::keyReleaseEvent(QKeyEvent* _e) { ...@@ -443,13 +443,13 @@ CoreWidget::keyReleaseEvent(QKeyEvent* _e) {
/** Map Key Press Events to Plugins */ /** Map Key Press Events to Plugins */
void void
CoreWidget::mapKeyPressEvent(QKeyEvent* _e){ CoreWidget::mapKeyPressEvent(QKeyEvent* _e){
std::cerr << "keypress " << _e->key() << std::endl;
//find the first plugin which wants to handle that key //find the first plugin which wants to handle that key
for (uint i=0; i < plugins_.size(); i++) for (uint i=0; i < plugins_.size(); i++)
for (int k=0; k < plugins_[i].keys.count(); k++) for (int k=0; k < plugins_[i].keys.count(); k++)
if ( plugins_[i].keys[k].key == _e->key() if ( plugins_[i].keys[k].key == _e->key()
&& plugins_[i].keys[k].modifiers == _e->modifiers() ){ && plugins_[i].keys[k].modifiers == _e->modifiers() ){
std::cerr << "keypress " << plugins_[i].name.toStdString() << std::endl;
KeyInterface* keyPlugin = qobject_cast< KeyInterface * >(plugins_[i].plugin); KeyInterface* keyPlugin = qobject_cast< KeyInterface * >(plugins_[i].plugin);
if (keyPlugin){ if (keyPlugin){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment