Bug 189495

Summary: [Qyoto] set gradient stops don't work
Product: [Developer tools] bindings Reporter: yan <mongaulois>
Component: generalAssignee: kde-bindings
Status: RESOLVED FIXED    
Severity: normal CC: arno
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

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>>));
        }