class LQColor: public QColor { LQColor(ColorEntry const ce): QColor(ce.get_rbg()) { int ho, so, vo; ce.get_hsv_offset(ho,so,vo); if (ho != 0 || so != 0 || vo != 0) { convertTo(QColor::Hsv); int h, s, v; getHsv(&h,&s,&v); setHsv(&(h += ho), &(s += so), &(v += so)); } }
Small rectification, the offsets are private so the previous code won't
work. But pseudo-code are not meant to work, are they? :-)
- Re: [Qt4 bug] Branches dialog, small issue with "al... Abdelrazak Younes
- Re: [Qt4 bug] Branches dialog, small issue with &qu... Georg Baum
- Re: [Qt4 bug] Branches dialog, small issue with... Abdelrazak Younes
- Re: [Qt4 bug] Branches dialog, small issue ... Angus Leeming
- Re: [Qt4 bug] Branches dialog, small is... Georg Baum
- Re: [Qt4 bug] Branches dialog, small is... Angus Leeming
- Re: [Qt4 bug] Branches dialog, small is... Abdelrazak Younes
- Re: [Qt4 bug] Branches dialog, small is... Abdelrazak Younes
- Re: [Qt4 bug] Branches dialog, small is... Angus Leeming
- Re: [Qt4 bug] Branches dialog, small is... Abdelrazak Younes
- Re: [Qt4 bug] Branches dialog, small is... Abdelrazak Younes
- Re: [Qt4 bug] Branches dialog, small is... Angus Leeming
- Re: [Qt4 bug] Branches dialog, small is... Abdelrazak Younes
- Re: [Qt4 bug] Branches dialog, small is... Georg Baum
- Re: [Qt4 bug] Branches dialog, small is... Abdelrazak Younes
- Re: [Qt4 bug] Branches dialog, small is... Abdelrazak Younes
- Re: [Qt4 bug] Branches dialog, small is... Georg Baum
- Re: [Qt4 bug] Branches dialog, small is... Abdelrazak Younes
- Re: [Qt4 bug] Branches dialog, small is... Georg Baum
- Re: [Qt4 bug] Branches dialog, small is... Georg Baum
- Re: [Qt4 bug] Branches dialog, small is... Martin Vermeer