Commit cef6d735 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

main: Register metatypes for both windows and linux, for both gui and server modes.

parent 98815488
......@@ -31,6 +31,7 @@
#include "project/GuiProjectManager.h"
#include "IntroDialog.h"
#include "LanguageHelper.h"
#include "Types.h"
#include <QApplication>
#include <QSettings>
......@@ -61,6 +62,10 @@ VLMCmain( int argc, char **argv )
app.setOrganizationDomain( "vlmc.org" );
app.setApplicationVersion( PROJECT_VERSION );
qRegisterMetaType<Workflow::TrackType>( "Workflow::TrackType" );
qRegisterMetaType<Vlmc::FrameChangedReason>( "Vlmc::FrameChangedReason" );
qRegisterMetaType<QVariant>( "QVariant" );
QSettings s;
LanguageHelper::getInstance()->languageChanged(
s.value( "general/VLMCLang", "default" ) );
......
......@@ -46,8 +46,8 @@ VLMCmain( int argc, char **argv )
app.setOrganizationDomain( "vlmc.org" );
app.setApplicationVersion( PROJECT_VERSION );
qRegisterMetaType<MainWorkflow::TrackType>( "MainWorkflow::TrackType" );
qRegisterMetaType<MainWorkflow::FrameChangedReason>( "MainWorkflow::FrameChangedReason" );
qRegisterMetaType<Workflow::TrackType>( "Workflow::TrackType" );
qRegisterMetaType<Vlmc::FrameChangedReason>( "Vlmc::FrameChangedReason" );
qRegisterMetaType<QVariant>( "QVariant" );
if ( app.arguments().count() < 3 )
......
......@@ -66,9 +66,6 @@ void signalHandler( int sig )
int main( int argc, char **argv )
{
qRegisterMetaType<Workflow::TrackType>( "Workflow::TrackType" );
qRegisterMetaType<Vlmc::FrameChangedReason>( "Vlmc::FrameChangedReason" );
qRegisterMetaType<QVariant>( "QVariant" );
#ifdef WITH_CRASHHANDLER
while ( true )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment