39 lines
1.1 KiB
C++
Raw Normal View History

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