mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-26 16:26:48 -06:00
Fixes by clang-format
This commit is contained in:
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
|
||||
|
||||
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 );
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user