Bug 189495 - [Qyoto] set gradient stops don't work
Summary: [Qyoto] set gradient stops don't work
Status: RESOLVED FIXED
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-13 00:28 UTC by yan
Modified: 2009-10-20 17:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yan 2009-04-13 00:28:54 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

i try to use QGradient::SetStops to initialize a gradient.
Unfortunatly the QPair type are inversed. When you look qyoto QGradient source, you can find this invertion :

public void SetStops(List<QPair<QColor, double>> stops) {
            interceptor.Invoke("setStops?", "setStops(const QVector<QPair<qreal,QColor> >&)", typeof(void), typeof(List<QPair<QColor, double>>), stops);
        }

        public List<QPair<QColor, double>> Stops() {
            return (List<QPair<QColor, double>>) interceptor.Invoke("stops", "stops() const", typeof(List<QPair<QColor, double>>));
        }