effect: Drop WindowPaintData::screen
It's unused.
This commit is contained in:
parent
86ede0ecf2
commit
64dc01c640
2 changed files with 0 additions and 25 deletions
|
@ -213,7 +213,6 @@ public:
|
|||
qreal opacity;
|
||||
qreal saturation;
|
||||
qreal brightness;
|
||||
int screen;
|
||||
qreal crossFadeProgress;
|
||||
};
|
||||
|
||||
|
@ -224,7 +223,6 @@ WindowPaintData::WindowPaintData()
|
|||
setOpacity(1.0);
|
||||
setSaturation(1.0);
|
||||
setBrightness(1.0);
|
||||
setScreen(0);
|
||||
setCrossFadeProgress(0.0);
|
||||
}
|
||||
|
||||
|
@ -242,7 +240,6 @@ WindowPaintData::WindowPaintData(const WindowPaintData &other)
|
|||
setOpacity(other.opacity());
|
||||
setSaturation(other.saturation());
|
||||
setBrightness(other.brightness());
|
||||
setScreen(other.screen());
|
||||
setCrossFadeProgress(other.crossFadeProgress());
|
||||
}
|
||||
|
||||
|
@ -263,11 +260,6 @@ qreal WindowPaintData::brightness() const
|
|||
return d->brightness;
|
||||
}
|
||||
|
||||
int WindowPaintData::screen() const
|
||||
{
|
||||
return d->screen;
|
||||
}
|
||||
|
||||
void WindowPaintData::setOpacity(qreal opacity)
|
||||
{
|
||||
d->opacity = opacity;
|
||||
|
@ -283,11 +275,6 @@ void WindowPaintData::setBrightness(qreal brightness)
|
|||
d->brightness = brightness;
|
||||
}
|
||||
|
||||
void WindowPaintData::setScreen(int screen) const
|
||||
{
|
||||
d->screen = screen;
|
||||
}
|
||||
|
||||
qreal WindowPaintData::crossFadeProgress() const
|
||||
{
|
||||
return d->crossFadeProgress;
|
||||
|
|
|
@ -408,18 +408,6 @@ public:
|
|||
* @since 4.10
|
||||
*/
|
||||
qreal multiplyBrightness(qreal factor);
|
||||
/**
|
||||
* The screen number for which the painting should be done.
|
||||
* This affects color correction (different screens may need different
|
||||
* color correction lookup tables because they have different ICC profiles).
|
||||
* @return screen for which painting should be done
|
||||
*/
|
||||
int screen() const;
|
||||
/**
|
||||
* @param screen New screen number
|
||||
* A value less than 0 will indicate that a default profile should be done.
|
||||
*/
|
||||
void setScreen(int screen) const;
|
||||
/**
|
||||
* @brief Sets the cross fading @p factor to fade over with previously sized window.
|
||||
* If @c 1.0 only the current window is used, if @c 0.0 only the previous window is used.
|
||||
|
|
Loading…
Reference in a new issue