/****************************************************************************** * QSkinny - Copyright (C) 2016 Uwe Rathmann * SPDX-License-Identifier: BSD-3-Clause *****************************************************************************/ #include "Dashboard.h" #include "SkinFactory.h" #include #include #include #include #include #include #include #include namespace { class Window : public QskWindow { public: Window() { setAutoLayoutChildren( true ); const QImage image( QStringLiteral( ":/images/background.jpg" ) ); auto backgroundImage = new QskGraphicLabel( contentItem() ); backgroundImage->setGraphic( QskGraphic::fromImage( image ) ); backgroundImage->setFillMode( QskGraphicLabel::Stretch ); (void ) new Dashboard( contentItem() ); } }; } int main( int argc, char** argv ) { #ifdef ITEM_STATISTICS QskObjectCounter counter( true ); #endif qskSkinManager->setPluginPaths( QStringList() ); // no skin plugins qskSkinManager->registerFactory( QStringLiteral( "sample" ), new SkinFactory() ); QGuiApplication app( argc, argv ); SkinnyShortcut::enable( SkinnyShortcut::AllShortcuts ); Window window; window.show(); return app.exec(); }