From ed842d07d489c76bdaf5472c5166e544c200cb6e Mon Sep 17 00:00:00 2001 From: "Vogel, Rick" Date: Fri, 28 Apr 2023 11:02:02 +0200 Subject: [PATCH] clang-format + copyright --- examples/listbox/TreeBox.cpp | 10 +++++----- examples/listbox/main.cpp | 10 +++++----- src/controls/QskTreeView.cpp | 5 +++++ src/controls/QskTreeView.h | 5 +++++ 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/examples/listbox/TreeBox.cpp b/examples/listbox/TreeBox.cpp index a55ca1ad..0de2e5e0 100644 --- a/examples/listbox/TreeBox.cpp +++ b/examples/listbox/TreeBox.cpp @@ -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; } diff --git a/examples/listbox/main.cpp b/examples/listbox/main.cpp index 1b5952e6..0b41648c 100644 --- a/examples/listbox/main.cpp +++ b/examples/listbox/main.cpp @@ -8,8 +8,8 @@ #ifdef ITEM_STATISTICS #include #endif -#include #include +#include #include @@ -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 ); diff --git a/src/controls/QskTreeView.cpp b/src/controls/QskTreeView.cpp index 55f345a4..5762b257 100644 --- a/src/controls/QskTreeView.cpp +++ b/src/controls/QskTreeView.cpp @@ -1,3 +1,8 @@ +/****************************************************************************** + * QSkinny - Copyright (C) 2016 Uwe Rathmann + * SPDX-License-Identifier: BSD-3-Clause + *****************************************************************************/ + #include "QskTreeView.h" QSK_SUBCONTROL( QskTreeView, Cell ) diff --git a/src/controls/QskTreeView.h b/src/controls/QskTreeView.h index a66ffe96..739dc4e9 100644 --- a/src/controls/QskTreeView.h +++ b/src/controls/QskTreeView.h @@ -1,3 +1,8 @@ +/****************************************************************************** + * QSkinny - Copyright (C) 2016 Uwe Rathmann + * SPDX-License-Identifier: BSD-3-Clause + *****************************************************************************/ + #pragma once #include