on Mac it seems the Round Cap pen does not work -> use squared cap for server stop now (workaround)
This commit is contained in:
parent
5d174d7caf
commit
0e92ed9e85
1 changed files with 2 additions and 5 deletions
|
@ -40,7 +40,7 @@ CHistoryGraph::CHistoryGraph() :
|
||||||
iTextOffsetToGrid ( 3 ),
|
iTextOffsetToGrid ( 3 ),
|
||||||
iXAxisTextHeight ( 22 ),
|
iXAxisTextHeight ( 22 ),
|
||||||
iMarkerSizeNewCon ( 11 ),
|
iMarkerSizeNewCon ( 11 ),
|
||||||
iMarkerSizeServSt ( 9 ),
|
iMarkerSizeServSt ( 8 ),
|
||||||
AxisFont ( "Arial", 12 ),
|
AxisFont ( "Arial", 12 ),
|
||||||
iTextOffsetX ( 18 ),
|
iTextOffsetX ( 18 ),
|
||||||
PlotBackgroundColor ( Qt::white ), // background
|
PlotBackgroundColor ( Qt::white ), // background
|
||||||
|
@ -208,19 +208,16 @@ void CHistoryGraph::AddMarker ( const SHistoryData& curHistoryData )
|
||||||
switch ( curHistoryData.Type )
|
switch ( curHistoryData.Type )
|
||||||
{
|
{
|
||||||
case HIT_SERVER_STOP:
|
case HIT_SERVER_STOP:
|
||||||
// filled circle marker
|
|
||||||
PlotPainter.setPen ( QPen ( QBrush ( PlotMarkerStopColor ),
|
PlotPainter.setPen ( QPen ( QBrush ( PlotMarkerStopColor ),
|
||||||
iMarkerSizeServSt, Qt::SolidLine, Qt::RoundCap ) );
|
iMarkerSizeServSt ) );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HIT_LOCAL_CONNECTION:
|
case HIT_LOCAL_CONNECTION:
|
||||||
// filled square marker
|
|
||||||
PlotPainter.setPen ( QPen ( QBrush ( PlotMarkerNewLocalColor ),
|
PlotPainter.setPen ( QPen ( QBrush ( PlotMarkerNewLocalColor ),
|
||||||
iMarkerSizeNewCon ) );
|
iMarkerSizeNewCon ) );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HIT_REMOTE_CONNECTION:
|
case HIT_REMOTE_CONNECTION:
|
||||||
// filled square marker
|
|
||||||
PlotPainter.setPen ( QPen ( QBrush ( PlotMarkerNewColor ),
|
PlotPainter.setPen ( QPen ( QBrush ( PlotMarkerNewColor ),
|
||||||
iMarkerSizeNewCon ) );
|
iMarkerSizeNewCon ) );
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue