Fixes by clang-format

This commit is contained in:
github-actions[bot] 2020-06-19 06:04:52 +00:00 committed by Magne Sjaastad
parent bdc536dfc4
commit b2043f7fe4
2 changed files with 9 additions and 9 deletions

View File

@ -172,10 +172,10 @@ std::unique_ptr<QIcon> IconProvider::icon( const QSize& size ) const
// Draw color gradient based on background colors
QLinearGradient gradient (QPointF(0.0f, 0.0f), QPoint(size.width(), 0.0f));
for (size_t i = 0; i < m_backgroundColorStrings.size(); ++i)
{
if (!QColor::isValidColor(m_backgroundColorStrings[i]))
QLinearGradient gradient( QPointF( 0.0f, 0.0f ), QPoint( size.width(), 0.0f ) );
for ( size_t i = 0; i < m_backgroundColorStrings.size(); ++i )
{
if ( !QColor::isValidColor( m_backgroundColorStrings[i] ) )
{
validIcon = false;
break;
@ -191,10 +191,10 @@ std::unique_ptr<QIcon> IconProvider::icon( const QSize& size ) const
// Draw border
QPainter painter2(&pixmap);
painter2.setRenderHint(QPainter::Antialiasing);
painter2.setPen(QPen(Qt::black, 1));
painter2.drawRect(QRectF(0, 0, size.width(), size.height()));
QPainter painter2( &pixmap );
painter2.setRenderHint( QPainter::Antialiasing );
painter2.setPen( QPen( Qt::black, 1 ) );
painter2.drawRect( QRectF( 0, 0, size.width(), size.height() ) );
}
else
pixmap.fill( Qt::transparent );

View File

@ -1277,7 +1277,7 @@ are stacked together to a chain, the mesh of each cube must be rotated by an ang
The tessellation makes sure opposite faces are divided along the same line
See figure http://www.ics.uci.edu/~eppstein/projects/tetra/
4, 5, 6, 0
0, 1, 5, 6
0, 2, 1, 6