CheckMark, CrossMark symbols introduced
This commit is contained in:
parent
f06e47613a
commit
5545d124e8
@ -187,6 +187,25 @@ static void qskInformationGraphic( QPainter* painter )
|
|||||||
painter->drawPath( path );
|
painter->drawPath( path );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void qskCheckMarkGraphic( QPainter* painter )
|
||||||
|
{
|
||||||
|
QPainterPath path;
|
||||||
|
|
||||||
|
path.moveTo( 0.0, 0.5 );
|
||||||
|
path.lineTo( 0.33, 1.0 );
|
||||||
|
path.lineTo( 1.0, 0.0 );
|
||||||
|
|
||||||
|
painter->setPen( QPen( Qt::black, 0.2 ) );
|
||||||
|
painter->drawPath( path );
|
||||||
|
}
|
||||||
|
|
||||||
|
static void qskCrossMarkGraphic( QPainter* painter )
|
||||||
|
{
|
||||||
|
painter->setPen( QPen( Qt::black, 0.2 ) );
|
||||||
|
painter->drawLine( 0.0, 0.0, 1.0, 1.0 );
|
||||||
|
painter->drawLine( 0.0, 1.0, 1.0, 0.0 );
|
||||||
|
}
|
||||||
|
|
||||||
QskGraphic QskStandardSymbol::graphic( Type symbolType )
|
QskGraphic QskStandardSymbol::graphic( Type symbolType )
|
||||||
{
|
{
|
||||||
static QskGraphic graphics[ SymbolTypeCount ];
|
static QskGraphic graphics[ SymbolTypeCount ];
|
||||||
@ -227,11 +246,25 @@ QskGraphic QskStandardSymbol::graphic( Type symbolType )
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case QskStandardSymbol::Information:
|
case QskStandardSymbol::Information:
|
||||||
default:
|
|
||||||
{
|
{
|
||||||
qskInformationGraphic( &painter );
|
qskInformationGraphic( &painter );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case QskStandardSymbol::CheckMark:
|
||||||
|
{
|
||||||
|
qskCheckMarkGraphic( &painter );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case QskStandardSymbol::CrossMark:
|
||||||
|
{
|
||||||
|
qskCrossMarkGraphic( &painter );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case QskStandardSymbol::NoSymbol:
|
||||||
|
case QskStandardSymbol::SymbolTypeCount:
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,6 +27,9 @@ namespace QskStandardSymbol
|
|||||||
Critical,
|
Critical,
|
||||||
Question,
|
Question,
|
||||||
|
|
||||||
|
CheckMark,
|
||||||
|
CrossMark,
|
||||||
|
|
||||||
SymbolTypeCount
|
SymbolTypeCount
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user