mix IDE M2

Integrated debugger;
Hit F5 and you can step forwards/backwards through execution.

It does not work, I think this is because KeyEventManager is instanciated
in the main thread, so "emit" is called in the main thread and not in this
other thread.

2014-12-08 21:32 GMT+01:00 subtly <notifications@github.com>:

> In mix/KeyEventManager.cpp:
>
> > +	along with cpp-ethereum.  If not, see <http://www.gnu.org/licenses/>.
> > +*/
> > +/** @file KeyEventManager.cpp
> > + * @author Yann yann@ethdev.com
> > + * @date 2014
> > + * Used as an event handler for all classes which need keyboard interactions.
> > + * Can be improve by adding the possibility to register to a specific key.
> > + */
> > +
> > +#include <QDebug>
> > +#include <QKeySequence>
> > +#include "KeyEventManager.h"
> > +
> > +void KeyEventManager::registerEvent(const QObject* _receiver, const char* _slot)
> > +{
> > +	QObject::connect(this, SIGNAL(onKeyPressed(int)), _receiver, _slot);
>
> Would be good to know if this works, if called from within another thread
> :)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ethereum/cpp-ethereum/pull/565/files#r21482741>.
>