2017-07-21 16:21:34 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
2023-04-06 07:23:37 +00:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2017-07-21 16:21:34 +00:00
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#include <SkinnyShortcut.h>
|
|
|
|
|
2023-04-28 08:47:36 +00:00
|
|
|
#ifdef ITEM_STATISTICS
|
2017-07-21 16:21:34 +00:00
|
|
|
#include <QskObjectCounter.h>
|
2023-04-28 08:47:36 +00:00
|
|
|
#endif
|
|
|
|
#include <QskLinearBox.h>
|
2023-04-28 09:02:02 +00:00
|
|
|
#include <QskWindow.h>
|
2017-07-21 16:21:34 +00:00
|
|
|
|
2018-08-03 06:15:28 +00:00
|
|
|
#include <QGuiApplication>
|
2017-07-21 16:21:34 +00:00
|
|
|
|
2023-04-28 08:47:36 +00:00
|
|
|
#include "ListBox.h"
|
|
|
|
#include "TreeBox.h"
|
2017-07-21 16:21:34 +00:00
|
|
|
|
|
|
|
int main( int argc, char* argv[] )
|
|
|
|
{
|
|
|
|
#ifdef ITEM_STATISTICS
|
|
|
|
QskObjectCounter counter( true );
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QGuiApplication app( argc, argv );
|
|
|
|
|
|
|
|
SkinnyShortcut::enable( SkinnyShortcut::AllShortcuts );
|
|
|
|
|
|
|
|
QskWindow window;
|
|
|
|
window.setColor( "Silver" );
|
|
|
|
|
2023-04-28 09:02:02 +00:00
|
|
|
auto* const layout = new QskLinearBox( Qt::Horizontal );
|
|
|
|
layout->setSpacing( 8 );
|
|
|
|
( void ) new ListBox( layout );
|
|
|
|
( void ) new TreeBox( layout );
|
2023-04-28 08:47:36 +00:00
|
|
|
|
|
|
|
window.addItem( layout );
|
2017-07-21 16:21:34 +00:00
|
|
|
window.resize( 400, 600 );
|
|
|
|
window.show();
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|