2019-06-20 10:02:28 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the 3-clause BSD License
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2017-07-25 05:24:27 +00:00
|
|
|
#include "MainWindow.h"
|
2017-07-25 19:34:27 +00:00
|
|
|
#include "SkinFactory.h"
|
2017-07-25 05:24:27 +00:00
|
|
|
|
2020-12-13 18:38:46 +00:00
|
|
|
#include <SkinnyShortcut.h>
|
|
|
|
#include <SkinnyFont.h>
|
|
|
|
|
2018-08-03 06:15:28 +00:00
|
|
|
#include <QskSetup.h>
|
2018-01-03 10:57:05 +00:00
|
|
|
#include <QskSkinManager.h>
|
2017-07-25 05:24:27 +00:00
|
|
|
#include <SkinnyShortcut.h>
|
|
|
|
|
|
|
|
#include <QGuiApplication>
|
|
|
|
|
2017-07-25 08:47:40 +00:00
|
|
|
int main( int argc, char** argv )
|
2017-07-25 05:24:27 +00:00
|
|
|
{
|
2020-12-13 18:38:46 +00:00
|
|
|
qskSkinManager->setPluginPaths( QStringList() ); // no skin plugins
|
|
|
|
qskSkinManager->registerFactory( QStringLiteral( "sample" ), new SkinFactory() );
|
2017-07-25 05:24:27 +00:00
|
|
|
|
2018-01-03 10:57:05 +00:00
|
|
|
QGuiApplication app( argc, argv );
|
2017-07-25 05:24:27 +00:00
|
|
|
|
2017-07-26 09:56:19 +00:00
|
|
|
/*
|
|
|
|
When going over QPainter for the SVGs we prefer the raster paint
|
2020-12-13 18:38:46 +00:00
|
|
|
engine, simply showing better results.
|
2017-07-26 09:56:19 +00:00
|
|
|
*/
|
|
|
|
qskSetup->setControlFlag( QskSetup::PreferRasterForTextures, true );
|
|
|
|
|
2020-12-13 18:38:46 +00:00
|
|
|
SkinnyFont::init( &app );
|
|
|
|
SkinnyShortcut::enable( SkinnyShortcut::AllShortcuts );
|
2017-07-26 11:21:10 +00:00
|
|
|
|
2020-12-13 18:38:46 +00:00
|
|
|
MainWindow window;
|
|
|
|
window.show();
|
2017-07-25 08:47:40 +00:00
|
|
|
|
2017-07-25 05:24:27 +00:00
|
|
|
return app.exec();
|
|
|
|
}
|