clang-format + copyright
This commit is contained in:
parent
835259c1a9
commit
ed842d07d4
|
@ -11,12 +11,12 @@ QSK_SUBCONTROL( TreeBox, SecondRow )
|
||||||
TreeBox::TreeBox( QQuickItem* const parent )
|
TreeBox::TreeBox( QQuickItem* const parent )
|
||||||
: Inherited( parent )
|
: Inherited( parent )
|
||||||
{
|
{
|
||||||
setAlternatingRowColors( true );
|
setAlternatingRowColors( true );
|
||||||
setPaddingHint( Cell, QMargins( 10, 20, 10, 20 ) );
|
setPaddingHint( Cell, QMargins( 10, 20, 10, 20 ) );
|
||||||
|
|
||||||
setAlternatingRowColors( true );
|
setAlternatingRowColors( true );
|
||||||
setColor( FirstRow, Qt::white );
|
setColor( FirstRow, Qt::white );
|
||||||
setColor( SecondRow, color(Panel) );
|
setColor( SecondRow, color( Panel ) );
|
||||||
updateScrollableSize();
|
updateScrollableSize();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -44,8 +44,8 @@ int TreeBox::columnCount() const
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal TreeBox::columnWidth( int col ) const
|
qreal TreeBox::columnWidth( int col ) const
|
||||||
{
|
{
|
||||||
return col == 0 ? 100: 350;
|
return col == 0 ? 100 : 350;
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal TreeBox::rowHeight() const
|
qreal TreeBox::rowHeight() const
|
||||||
|
@ -68,7 +68,7 @@ Q_INVOKABLE QVariant TreeBox::valueAt( int row, int col ) const
|
||||||
return QStringLiteral( "The quick brown fox jumps over the lazy dog" );
|
return QStringLiteral( "The quick brown fox jumps over the lazy dog" );
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal TreeBox::rowOffset( int row ) const
|
qreal TreeBox::rowOffset( int row ) const
|
||||||
{
|
{
|
||||||
return ( row % 4 ) * 10;
|
return ( row % 4 ) * 10;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
#ifdef ITEM_STATISTICS
|
#ifdef ITEM_STATISTICS
|
||||||
#include <QskObjectCounter.h>
|
#include <QskObjectCounter.h>
|
||||||
#endif
|
#endif
|
||||||
#include <QskWindow.h>
|
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
|
#include <QskWindow.h>
|
||||||
|
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
|
|
||||||
|
@ -29,10 +29,10 @@ int main( int argc, char* argv[] )
|
||||||
QskWindow window;
|
QskWindow window;
|
||||||
window.setColor( "Silver" );
|
window.setColor( "Silver" );
|
||||||
|
|
||||||
auto* const layout = new QskLinearBox(Qt::Horizontal);
|
auto* const layout = new QskLinearBox( Qt::Horizontal );
|
||||||
layout->setSpacing(8);
|
layout->setSpacing( 8 );
|
||||||
(void) new ListBox(layout);
|
( void ) new ListBox( layout );
|
||||||
(void) new TreeBox(layout);
|
( void ) new TreeBox( layout );
|
||||||
|
|
||||||
window.addItem( layout );
|
window.addItem( layout );
|
||||||
window.resize( 400, 600 );
|
window.resize( 400, 600 );
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
||||||
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
#include "QskTreeView.h"
|
#include "QskTreeView.h"
|
||||||
|
|
||||||
QSK_SUBCONTROL( QskTreeView, Cell )
|
QSK_SUBCONTROL( QskTreeView, Cell )
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
||||||
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <QskListView.h>
|
#include <QskListView.h>
|
||||||
|
|
Loading…
Reference in New Issue