kdeui: de-virtualize KColorScheme destructor

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-09-23 16:45:07 +03:00
parent c7460ca0c3
commit ebabe11179
3 changed files with 7 additions and 10 deletions

View file

@ -21,7 +21,10 @@
#ifndef KDEUI_COLORS_KCOLORHELPERS_P_H
#define KDEUI_COLORS_KCOLORHELPERS_P_H
#include <QtGui/QColor>
#include <QColor>
#include <QPainter>
#include <QRect>
#include <QBrush>
// normalize: like qBound(a, 0.0, 1.0) but without needing the args and with
// "safer" behavior on NaN (isnan(a) -> return 0.0)
@ -30,10 +33,6 @@ static inline qreal normalize(qreal a)
return (a < 1.0 ? (a > 0.0 ? a : 0.0) : 1.0);
}
#include <QPainter>
#include <QRect>
#include <QBrush>
namespace KDEPrivate {
// fill a rectangle with a brush over chessboard pattern

View file

@ -23,8 +23,7 @@
#include <kdeui_export.h>
#include <ksharedconfig.h>
#include <QtGui/QPalette>
#include <QPalette>
#include <QColor>
#include <QBrush>
@ -299,7 +298,7 @@ public:
KColorScheme(const KColorScheme&);
/** Destructor */
virtual ~KColorScheme();
~KColorScheme();
/** Standard assignment operator */
KColorScheme& operator=(const KColorScheme&);

View file

@ -879,8 +879,7 @@ qreal KFontChooser::Private::setupSizeListBox (const QString& family, const QStr
if (dbase.isSmoothlyScalable(family, style)) {
// A vector font.
//>sampleEdit->setPaletteBackgroundPixmap( VectorPixmap ); // TODO
}
else {
} else {
// A bitmap font.
//sampleEdit->setPaletteBackgroundPixmap( BitmapPixmap ); // TODO
QList<int> smoothSizes = dbase.smoothSizes(family, style);