32 lines
775 B
C++
Raw Normal View History

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
#include <QskShortcut.h>
#include <QskSetup.h>
#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
{
QGuiApplication app( argc, argv );
SkinFactory skinFactory;
Qsk::registerSkinFactory( "SampleSkinFactory", &skinFactory );
2017-07-25 21:34:27 +02:00
qskSetup->setSkin( "DefaultSkin" );
2017-07-25 07:24:27 +02:00
2017-07-25 21:34:27 +02:00
SkinnyShortcut::enable( SkinnyShortcut::DebugBackground | SkinnyShortcut::Quit );
QskShortcut::addShortcut( QKeySequence( Qt::CTRL + Qt::Key_T ),
&skinFactory, SLOT( toggleScheme()), false );
QskShortcut::addShortcut( QKeySequence( Qt::CTRL + Qt::Key_S ),
&skinFactory, SLOT( rotateSkin()), false );
2017-07-25 07:24:27 +02:00
MainWindow mainWindow;
mainWindow.show();
2017-07-25 10:47:40 +02:00
2017-07-25 07:24:27 +02:00
return app.exec();
}