mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
initialize QPixmapColorizeFilterPrivate members from its constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
46f623c3f2
commit
39270a4f40
2 changed files with 3 additions and 6 deletions
|
@ -126,7 +126,6 @@ struct QCoreApplicationData
|
|||
QStringList app_librarypaths;
|
||||
QStringList app_pluginpaths;
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
Q_GLOBAL_STATIC(QCoreApplicationData, coreappdata)
|
||||
|
|
|
@ -569,6 +569,9 @@ class QPixmapColorizeFilterPrivate : public QPixmapFilterPrivate
|
|||
{
|
||||
Q_DECLARE_PUBLIC(QPixmapColorizeFilter)
|
||||
public:
|
||||
QPixmapColorizeFilterPrivate()
|
||||
: color(0, 0, 192), strength(1), opaque(true), alphaBlend(false) {}
|
||||
|
||||
QColor color;
|
||||
qreal strength;
|
||||
bool opaque;
|
||||
|
@ -585,11 +588,6 @@ public:
|
|||
QPixmapColorizeFilter::QPixmapColorizeFilter(QObject *parent)
|
||||
: QPixmapFilter(*new QPixmapColorizeFilterPrivate, ColorizeFilter, parent)
|
||||
{
|
||||
Q_D(QPixmapColorizeFilter);
|
||||
d->color = QColor(0, 0, 192);
|
||||
d->strength = qreal(1);
|
||||
d->opaque = true;
|
||||
d->alphaBlend = false;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Add table
Reference in a new issue