qskinny/examples/qvgviewer/main.cpp

37 lines
981 B
C++
Raw Normal View History

2017-07-21 16:21:34 +00:00
/******************************************************************************
2024-01-17 13:31:45 +00:00
* QSkinny - Copyright (C) The authors
2023-04-06 07:23:37 +00:00
* SPDX-License-Identifier: BSD-3-Clause
2017-07-21 16:21:34 +00:00
*****************************************************************************/
#include "MainWindow.h"
#include <SkinnyShortcut.h>
#include <QskFocusIndicator.h>
#include <QskObjectCounter.h>
#include <QGuiApplication>
int main( int argc, char* argv[] )
{
#ifdef ITEM_STATISTICS
QskObjectCounter counter( true );
#endif
QGuiApplication app( argc, argv );
SkinnyShortcut::enable( SkinnyShortcut::DebugBackground |
SkinnyShortcut::DebugStatistics | SkinnyShortcut::Quit );
2017-07-21 16:21:34 +00:00
2022-11-24 08:08:53 +00:00
auto focusIndicator = new QskFocusIndicator();
2017-07-21 16:21:34 +00:00
focusIndicator->setObjectName( "FocusIndicator" );
MainWindow window;
2025-02-19 07:28:15 +00:00
window.setGraphic( ( argc > 1 ) ? argv[1] : ":/qvg/Tux.qvg" );
2017-07-21 16:21:34 +00:00
window.resize( 600, 400 );
window.addItem( focusIndicator );
window.show();
return app.exec();
}