- Added headlessloader class to prepare Fred's work

This commit is contained in:
Christophe Dumez 2009-12-15 11:08:22 +00:00
parent e2aaf5d1de
commit af166f53d3
3 changed files with 52 additions and 2 deletions

View file

@ -33,7 +33,7 @@
#include <QTranslator>
#include <QFile>
#ifndef DIABLE_GUI
#ifndef DISABLE_GUI
#include <QSplashScreen>
#include <QPlastiqueStyle>
#include "qgnomelook.h"
@ -47,6 +47,8 @@
#endif
#include "GUI.h"
#include "ico.h"
#else
#include "headlessloader.h"
#endif
#include <QSettings>
@ -231,11 +233,14 @@ int main(int argc, char *argv[]){
#else
// Load Headless class
// TODO: by Frederic Lassabe
HeadlessLoader *loader = new HeadlessLoader();
#endif
int ret = app->exec();
#ifndef DISABLE_GUI
delete window;
qDebug("GUI was deleted!");
#else
delete loader;
#endif
qDebug("Deleting app...");
delete app;