Q3DWidgetFactory.cc 300 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "Q3DWidgetFactory.h"

#include "Pixhawk3DWidget.h"

QPointer<Q3DWidget>
Q3DWidgetFactory::get(const std::string& type)
{
    if (type == "PIXHAWK")
    {
        return QPointer<Q3DWidget>(new Pixhawk3DWidget);
    }
    else
    {
        return QPointer<Q3DWidget>(new Q3DWidget);
    }
}