compiler warnings fixed
This commit is contained in:
parent
6caa018d1c
commit
0b3315d231
@ -51,7 +51,7 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void addTestRectangle( QskLinearBox* parent )
|
static void addTestRectangle( QskLinearBox* parent )
|
||||||
{
|
{
|
||||||
auto box = new Box( parent );
|
auto box = new Box( parent );
|
||||||
box->setMargins( 50 );
|
box->setMargins( 50 );
|
||||||
|
@ -122,7 +122,7 @@ bool Benchmark::run( const QString& dirName )
|
|||||||
|
|
||||||
for ( int i = 0; i < qvgFiles.size(); i++ )
|
for ( int i = 0; i < qvgFiles.size(); i++ )
|
||||||
{
|
{
|
||||||
int textureId = QskGraphicTextureFactory::createTexture(
|
const auto textureId = QskGraphicTextureFactory::createTexture(
|
||||||
QskGraphicTextureFactory::OpenGL, targetRect, Qt::KeepAspectRatio,
|
QskGraphicTextureFactory::OpenGL, targetRect, Qt::KeepAspectRatio,
|
||||||
graphics[i], colorFilter );
|
graphics[i], colorFilter );
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ bool Benchmark::run( const QString& dirName )
|
|||||||
|
|
||||||
for ( int i = 0; i < qvgFiles.size(); i++ )
|
for ( int i = 0; i < qvgFiles.size(); i++ )
|
||||||
{
|
{
|
||||||
int textureId = QskGraphicTextureFactory::createTexture(
|
const auto textureId = QskGraphicTextureFactory::createTexture(
|
||||||
QskGraphicTextureFactory::Raster, targetRect, Qt::KeepAspectRatio,
|
QskGraphicTextureFactory::Raster, targetRect, Qt::KeepAspectRatio,
|
||||||
graphics[i], colorFilter );
|
graphics[i], colorFilter );
|
||||||
|
|
||||||
|
@ -20,12 +20,12 @@
|
|||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
// should be skin hints
|
// should be skin hints
|
||||||
const qreal qskMinorTick = 20;
|
static const qreal qskMinorTick = 20;
|
||||||
const qreal qskMajorTick = 1.5 * qskMinorTick;
|
static const qreal qskMajorTick = 1.5 * qskMinorTick;
|
||||||
const qreal qskMargin = 20;
|
static const qreal qskMargin = 20;
|
||||||
const qreal qskPeak = 10;
|
static const qreal qskPeak = 10;
|
||||||
|
|
||||||
QFont qskLabelFont;
|
static QFont qskLabelFont;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class TicksNode : public QSGGeometryNode
|
class TicksNode : public QSGGeometryNode
|
||||||
|
@ -48,7 +48,7 @@ static QColor randomColor()
|
|||||||
"DarkSlateGray"
|
"DarkSlateGray"
|
||||||
};
|
};
|
||||||
|
|
||||||
const int index = qrand() % ( sizeof( colors ) / sizeof( colors[0] ) );
|
const int index = qrand() % int( ( sizeof( colors ) / sizeof( colors[0] ) ) );
|
||||||
return QColor( colors[ index ] );
|
return QColor( colors[ index ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user