turn cReducedQuality into a LongInt and provide a series of quality flags (and best of all, this is still compatible with current frontend)
#include <QtGui/QApplication>
#include "editor.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
editor w;
w.show();
return a.exec();
}