fix for Linux

This commit is contained in:
Volker Fischer 2009-06-06 11:34:24 +00:00
parent 37d826630d
commit b52fd5ed9e
2 changed files with 4 additions and 4 deletions

View file

@ -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 );

View file

@ -25,7 +25,7 @@
#if !defined ( SERVERLOGGING_HOIHOKIH83JH8_3_43445KJIUHF1912__INCLUDED_ )
#define SERVERLOGGING_HOIHOKIH83JH8_3_43445KJIUHF1912__INCLUDED_
#include <qpixmap.h>
#include <qimage.h>
#include <qpainter.h>
#include <qdatetime.h>
#include <qhostaddress.h>
@ -77,7 +77,7 @@ protected:
QColor PlotMarkerNewColor;
QColor PlotMarkerStopColor;
QDate curDate;
QPixmap PlotPixmap;
QImage PlotPixmap;
QRect PlotCanvasRect;
QRect PlotGridFrame;
QString sFileName;