diff --git a/src/serverlogging.cpp b/src/serverlogging.cpp index 8bb4cd48..af59878c 100755 --- a/src/serverlogging.cpp +++ b/src/serverlogging.cpp @@ -47,7 +47,7 @@ CHistoryGraph::CHistoryGraph() : PlotTextColor ( Qt::black ), // black text PlotMarkerNewColor ( Qt::blue ), // blue marker for new connection PlotMarkerStopColor ( Qt::red ), // red marker server stop - PlotPixmap ( 1, 1 ) + PlotPixmap ( 1, 1, QImage::Format_RGB32 ) { // generate plot grid frame rectangle PlotGridFrame.setCoords ( PlotCanvasRect.x() + iGridFrameOffset, @@ -91,7 +91,7 @@ void CHistoryGraph::DrawFrame ( const int iNewNumTicksX ) iNumTicksX = iNewNumTicksX; // clear base pixmap for new plotting - PlotPixmap.fill ( PlotBackgroundColor ); // fill background + PlotPixmap.fill ( PlotBackgroundColor.rgb() ); // fill background // create painter QPainter PlotPainter ( &PlotPixmap ); diff --git a/src/serverlogging.h b/src/serverlogging.h index 9f97fe40..e6af1098 100755 --- a/src/serverlogging.h +++ b/src/serverlogging.h @@ -25,7 +25,7 @@ #if !defined ( SERVERLOGGING_HOIHOKIH83JH8_3_43445KJIUHF1912__INCLUDED_ ) #define SERVERLOGGING_HOIHOKIH83JH8_3_43445KJIUHF1912__INCLUDED_ -#include +#include #include #include #include @@ -77,7 +77,7 @@ protected: QColor PlotMarkerNewColor; QColor PlotMarkerStopColor; QDate curDate; - QPixmap PlotPixmap; + QImage PlotPixmap; QRect PlotCanvasRect; QRect PlotGridFrame; QString sFileName;