Ok. Let's disable the right one this time. In fact, let's just remove newgrave entirely - no point in half-measures.
#include <QtGui/QApplication>
#include "editor.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
editor w;
w.show();
return a.exec();
}