Pass ScriptParams to preview to support techracer. Proof of concept for techracer, generate a preview for m=4
#include <QtGui/QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}