mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdeui: de-virtualize KColorScheme destructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c7460ca0c3
commit
ebabe11179
3 changed files with 7 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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&);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue