Pages
API Documentation
On this page

Obsolete Members for KIconEffect

The following members of class KIconEffect are deprecated. We strongly advise against using them in new code.

Public Types

Public Functions

Obsolete Member Type Documentation

[deprecated in 6.5] enum KIconEffect::Effects

This enum is deprecated since 6.5. We strongly advise against using it in new code.

This is the enumeration of all possible icon effects.

Constant Value Description
KIconEffect::NoEffect 0 Do not apply any icon effect
KIconEffect::ToGray 1 Tints the icon gray
KIconEffect::Colorize 2 Tints the icon with a specific color
KIconEffect::ToGamma 3 Change the gamma value of the icon
KIconEffect::DeSaturate 4 Reduce the saturation of the icon
KIconEffect::ToMonochrome 5 Produces a monochrome icon

use the static API

Obsolete Member Function Documentation

[deprecated in 6.5] KIconEffect::KIconEffect()

This function is deprecated since 6.5. We strongly advise against using it in new code.

Create a new KIconEffect. You will most likely never have to use this to create a new KIconEffect yourself, as you can use the KIconEffect provided by the global KIconLoader (which itself is accessible by KIconLoader::global()) through its iconEffect() function.

use the static API

[deprecated in 6.5] QImage KIconEffect::apply(const QImage &src, int group, int state) const

This function is deprecated since 6.5. We strongly advise against using it in new code.

Applies an effect to an image. The effect to apply depends on the group and state parameters, and is configured by the user.

src The image.

group The group for the icon, see KIconLoader::Group

state The icon's state, see KIconLoader::States

Returns An image with the effect applied.

use the static API

[deprecated in 6.5] QPixmap KIconEffect::apply(const QPixmap &src, int group, int state) const

This function is deprecated since 6.5. We strongly advise against using it in new code.

Applies an effect to a pixmap.

src The pixmap.

group The group for the icon, see KIconLoader::Group

state The icon's state, see KIconLoader::States

Returns A pixmap with the effect applied.

use the static API

[deprecated in 6.5] QImage KIconEffect::apply(const QImage &src, int effect, float value, const QColor &rgb, bool trans) const

This function is deprecated since 6.5. We strongly advise against using it in new code.

Applies an effect to an image.

src The image.

effect The effect to apply, one of KIconEffect::Effects.

value Strength of the effect. 0 <= value <= 1.

rgb Color parameter for effects that need one.

trans Add Transparency if trans = true.

Returns An image with the effect applied.

use the static API

[deprecated in 6.5] QPixmap KIconEffect::apply(const QPixmap &src, int effect, float value, const QColor &rgb, bool trans) const

This function is deprecated since 6.5. We strongly advise against using it in new code.

Applies an effect to a pixmap.

src The pixmap.

effect The effect to apply, one of KIconEffect::Effects.

value Strength of the effect. 0 <= value <= 1.

rgb Color parameter for effects that need one.

trans Add Transparency if trans = true.

Returns A pixmap with the effect applied.

use the static API

[deprecated in 6.5] QImage KIconEffect::apply(const QImage &src, int effect, float value, const QColor &rgb, const QColor &rgb2, bool trans) const

This function is deprecated since 6.5. We strongly advise against using it in new code.

Applies an effect to an image.

src The image.

effect The effect to apply, one of KIconEffect::Effects.

value Strength of the effect. 0 <= value <= 1.

rgb Color parameter for effects that need one.

trans Add Transparency if trans = true.

Returns An image with the effect applied.

use the static API

[deprecated in 6.5] QPixmap KIconEffect::apply(const QPixmap &src, int effect, float value, const QColor &rgb, const QColor &rgb2, bool trans) const

This function is deprecated since 6.5. We strongly advise against using it in new code.

Applies an effect to a pixmap.

src The pixmap.

effect The effect to apply, one of KIconEffect::Effects.

value Strength of the effect. 0 <= value <= 1.

rgb Color parameter for effects that need one.

trans Add Transparency if trans = true.

Returns A pixmap with the effect applied.

use the static API

[deprecated in 6.5] QImage KIconEffect::doublePixels(const QImage &src) const

This function is deprecated since 6.5. We strongly advise against using it in new code.

Returns an image twice as large, consisting of 2x2 pixels.

src the image.

Returns the scaled image.

use the static API

[deprecated in 6.5] QString KIconEffect::fingerprint(int group, int state) const

This function is deprecated since 6.5. We strongly advise against using it in new code.

Returns a fingerprint for the effect by encoding the given group and state into a QString.

This is useful for caching.

group the group, see KIconLoader::Group

state the state, see KIconLoader::States

Returns the fingerprint of the given group + state

use the static API

[deprecated in 6.5] bool KIconEffect::hasEffect(int group, int state) const

This function is deprecated since 6.5. We strongly advise against using it in new code.

Tests whether an effect has been configured for the given icon group.

group the group to check, see KIconLoader::Group

state the state to check, see KIconLoader::States

Returns true if an effect is configured for the given group in state, otherwise false.

use the static API

See also KIconLoader::Group, KIconLoader::States

[deprecated in 6.5] void KIconEffect::init()

This function is deprecated since 6.5. We strongly advise against using it in new code.

Rereads configuration.

use the static API

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.