
// Includes.
#include "UI/mainwindow.h"
#include "App/App.h"

#include "System/QtBasedFileSystem.h"

// Qt.
#include <QApplication>

QString titleString()
{
    QString name = QString::fromStdString(App::appName());
    QString version = QString::fromStdString(App::appVersion());
    return QString("%1 - v%2").arg(name).arg(version);
}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QtBasedFileSystem file_system;

    App app(&file_system);
    app.loadScriptNodes("Nodin/NodeScripts/Lua");

    MainWindow w(&app);
    w.setWindowTitle(titleString());
    w.setMinimumSize(800, 600);
    w.show();

    app.setUI(&w);
    app.setDelegate(&w);

    return a.exec();
}


// Includes.
#include "UI/mainwindow.h"
#include "App/App.h"

#include "App/Factories/TextFileNFDelegate.h"

#include "System/QtBasedFileSystem.h"

// Qt.
#include <QApplication>

QString titleString()
{
    QString name = QString::fromStdString(App::appName());
    QString version = QString::fromStdString(App::appVersion());
    return QString("%1 - v%2").arg(name).arg(version);
}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QtBasedFileSystem file_system;

    App app(&file_system);
    app.addNodeFactory(new TextFileNFDelegate);
    app.loadScriptNodes("Nodin/NodeScripts/Lua");

    MainWindow w(&app);
    w.setWindowTitle(titleString());
    w.setMinimumSize(800, 600);
    w.show();

    app.setUI(&w);
    app.setDelegate(&w);

    return a.exec();
}

--- 
+++ 
@@ -2,8 +2,6 @@
 // Includes.
 #include "UI/mainwindow.h"
 #include "App/App.h"
-
-#include "App/Factories/TextFileNFDelegate.h"
 
 #include "System/QtBasedFileSystem.h"
 
@@ -24,7 +22,6 @@
     QtBasedFileSystem file_system;
 
     App app(&file_system);
-    app.addNodeFactory(new TextFileNFDelegate);
     app.loadScriptNodes("Nodin/NodeScripts/Lua");
 
     MainWindow w(&app);
Stop using redundant class TextFileNFDelegate.
