2017-07-21 18:21:34 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the 3-clause BSD License
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2017-07-23 16:40:24 +02:00
|
|
|
#include "Theme.h"
|
|
|
|
|
2017-07-21 18:21:34 +02:00
|
|
|
#include <SkinnyFont.h>
|
|
|
|
#include <SkinnyShortcut.h>
|
|
|
|
|
|
|
|
#include <QskModule.h>
|
|
|
|
#include <QskObjectCounter.h>
|
|
|
|
|
2017-07-24 09:44:20 +02:00
|
|
|
#include <QtQml>
|
2017-07-21 18:21:34 +02:00
|
|
|
#include <QQmlApplicationEngine>
|
|
|
|
#include <QGuiApplication>
|
|
|
|
|
|
|
|
int main( int argc, char* argv[] )
|
|
|
|
{
|
|
|
|
#ifdef ITEM_STATISTICS
|
|
|
|
QskObjectCounter counter( true );
|
|
|
|
#endif
|
|
|
|
|
|
|
|
qputenv( "QT_IM_MODULE", "skinny" );
|
|
|
|
|
|
|
|
QskModule::registerTypes();
|
|
|
|
qmlRegisterType< Theme >( "Theme", 1, 0, "Theme" );
|
|
|
|
|
|
|
|
QGuiApplication app( argc, argv );
|
|
|
|
|
|
|
|
SkinnyFont::init( &app );
|
|
|
|
SkinnyShortcut::enable( SkinnyShortcut::Quit |
|
2018-01-04 13:59:51 +01:00
|
|
|
SkinnyShortcut::ChangeFonts | SkinnyShortcut::DebugShortcuts );
|
2017-07-21 18:21:34 +02:00
|
|
|
|
2017-07-23 12:49:25 +02:00
|
|
|
QQmlApplicationEngine engine( QUrl( "qrc:/qml/colorswitch.qml" ) );
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|