MiniDisplay/minidisplay_plugin.cpp
author sl
Thu, 29 May 2014 14:27:08 +0200
changeset 15 737f8bb110be
permissions -rw-r--r--
Adding MiniDisplay methods to display image and window.
Using our test tab to render our display frame in QML and send it to our display.
Using a timer and frame counter to profile our performance.
sl@2
     1
#include "minidisplay_plugin.h"
sl@2
     2
#include "minidisplay.h"
sl@2
     3
sl@2
     4
#include <qqml.h>
sl@2
     5
sl@2
     6
void MiniDisplayPlugin::registerTypes(const char *uri)
sl@2
     7
{
sl@2
     8
    // @uri com.slions.minidisplay
sl@2
     9
    qmlRegisterType<MiniDisplay>(uri, 1, 0, "MiniDisplay");
sl@2
    10
}
sl@2
    11
sl@2
    12