mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixes by clang-format
This commit is contained in:
committed by
Magne Sjaastad
parent
bdc536dfc4
commit
b2043f7fe4
@@ -172,10 +172,10 @@ std::unique_ptr<QIcon> IconProvider::icon( const QSize& size ) const
|
|||||||
|
|
||||||
// Draw color gradient based on background colors
|
// Draw color gradient based on background colors
|
||||||
|
|
||||||
QLinearGradient gradient (QPointF(0.0f, 0.0f), QPoint(size.width(), 0.0f));
|
QLinearGradient gradient( QPointF( 0.0f, 0.0f ), QPoint( size.width(), 0.0f ) );
|
||||||
for (size_t i = 0; i < m_backgroundColorStrings.size(); ++i)
|
for ( size_t i = 0; i < m_backgroundColorStrings.size(); ++i )
|
||||||
{
|
{
|
||||||
if (!QColor::isValidColor(m_backgroundColorStrings[i]))
|
if ( !QColor::isValidColor( m_backgroundColorStrings[i] ) )
|
||||||
{
|
{
|
||||||
validIcon = false;
|
validIcon = false;
|
||||||
break;
|
break;
|
||||||
@@ -191,10 +191,10 @@ std::unique_ptr<QIcon> IconProvider::icon( const QSize& size ) const
|
|||||||
|
|
||||||
// Draw border
|
// Draw border
|
||||||
|
|
||||||
QPainter painter2(&pixmap);
|
QPainter painter2( &pixmap );
|
||||||
painter2.setRenderHint(QPainter::Antialiasing);
|
painter2.setRenderHint( QPainter::Antialiasing );
|
||||||
painter2.setPen(QPen(Qt::black, 1));
|
painter2.setPen( QPen( Qt::black, 1 ) );
|
||||||
painter2.drawRect(QRectF(0, 0, size.width(), size.height()));
|
painter2.drawRect( QRectF( 0, 0, size.width(), size.height() ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
pixmap.fill( Qt::transparent );
|
pixmap.fill( Qt::transparent );
|
||||||
|
|||||||
@@ -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
|
The tessellation makes sure opposite faces are divided along the same line
|
||||||
See figure http://www.ics.uci.edu/~eppstein/projects/tetra/
|
See figure http://www.ics.uci.edu/~eppstein/projects/tetra/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
4, 5, 6, 0
|
4, 5, 6, 0
|
||||||
|
|||||||
Reference in New Issue
Block a user