Hi,

I noticed that the ProgressBar code from Meego uses a MaskedItem
element to apply a multiply effect in the foreground image, using
another element as alpha mask.

Currently the code is like below:

BorderImage {
    id: background

    MaskedItem {
        id: foreground

        mask: BorderImage { ... }
        visualItem: Image { ... }
    }
}

Couldn't this code be replaced by the following?

BorderImage {
    id: background

    BorderImage {
        id: foreground
    }
}

The foreground images could be already composed with the mask,
avoiding caching the visualItem and composing it with the mask for
each frame.

Also, regarding the MaskedItem, could it be moved to "com.meego" namespace?

Br,
Adriano
_______________________________________________
Qt-components mailing list
Qt-components@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-components

Reply via email to