Skip to content

Commit

Permalink
Fix Qt 6.8 warnings in KDChartNullPaintDevice
Browse files Browse the repository at this point in the history
and include <KDChart> in one of the tests so that we can see such
warnings, otherwise nothing builds KDChartNullPaintDevice in this repo
  • Loading branch information
dfaure-kdab committed Oct 12, 2024
1 parent b82b206 commit 0cd5553
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/KDChart/KDChartNullPaintDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ class NullPaintDevice : public QPaintDevice
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
case QPaintDevice::PdmDevicePixelRatioScaled:
return 1;
#endif
#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
case QPaintDevice::PdmDevicePixelRatioF_EncodedA:
case QPaintDevice::PdmDevicePixelRatioF_EncodedB:
return 0;
#endif
}
return 1;
Expand Down
5 changes: 1 addition & 4 deletions tests/RootIndex/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@

#include "mainwindow.h"

#include <KDChartAbstractCoordinatePlane>
#include <KDChartBarDiagram>
#include <KDChartChart>
#include <KDChartLineDiagram>
#include <KDChart>

#include <QDebug>
#include <QPainter>
Expand Down

0 comments on commit 0cd5553

Please sign in to comment.