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 )
|
||||
: Inherited( parent )
|
||||
{
|
||||
setAlternatingRowColors( true );
|
||||
setAlternatingRowColors( true );
|
||||
setPaddingHint( Cell, QMargins( 10, 20, 10, 20 ) );
|
||||
|
||||
setAlternatingRowColors( true );
|
||||
setColor( FirstRow, Qt::white );
|
||||
setColor( SecondRow, color(Panel) );
|
||||
setColor( SecondRow, color( Panel ) );
|
||||
updateScrollableSize();
|
||||
};
|
||||
|
||||
|
@ -44,8 +44,8 @@ int TreeBox::columnCount() const
|
|||
}
|
||||
|
||||
qreal TreeBox::columnWidth( int col ) const
|
||||
{
|
||||
return col == 0 ? 100: 350;
|
||||
{
|
||||
return col == 0 ? 100 : 350;
|
||||
}
|
||||
|
||||
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" );
|
||||
}
|
||||
|
||||
qreal TreeBox::rowOffset( int row ) const
|
||||
qreal TreeBox::rowOffset( int row ) const
|
||||
{
|
||||
return ( row % 4 ) * 10;
|
||||
}
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
#ifdef ITEM_STATISTICS
|
||||
#include <QskObjectCounter.h>
|
||||
#endif
|
||||
#include <QskWindow.h>
|
||||
#include <QskLinearBox.h>
|
||||
#include <QskWindow.h>
|
||||
|
||||
#include <QGuiApplication>
|
||||
|
||||
|
@ -29,10 +29,10 @@ int main( int argc, char* argv[] )
|
|||
QskWindow window;
|
||||
window.setColor( "Silver" );
|
||||
|
||||
auto* const layout = new QskLinearBox(Qt::Horizontal);
|
||||
layout->setSpacing(8);
|
||||
(void) new ListBox(layout);
|
||||
(void) new TreeBox(layout);
|
||||
auto* const layout = new QskLinearBox( Qt::Horizontal );
|
||||
layout->setSpacing( 8 );
|
||||
( void ) new ListBox( layout );
|
||||
( void ) new TreeBox( layout );
|
||||
|
||||
window.addItem( layout );
|
||||
window.resize( 400, 600 );
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/******************************************************************************
|
||||
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*****************************************************************************/
|
||||
|
||||
#include "QskTreeView.h"
|
||||
|
||||
QSK_SUBCONTROL( QskTreeView, Cell )
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/******************************************************************************
|
||||
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*****************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QskListView.h>
|
||||
|
|
Loading…
Reference in New Issue