Bug 138751

Summary: Invalid member generation for Qt::Palette - Qt 4.2.2
Product: [Unmaintained] bindings Reporter: Caleb Tennis <caleb>
Component: generalAssignee: kde-bindings
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Caleb Tennis 2006-12-13 15:47:37 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Gentoo Packages
OS:                Linux

The Qt 4.2 API shows these methods under QPalette:

void setBrush ( ColorRole cr, const QBrush & brush ) 
void setBrush ( ColorGroup cg, ColorRole cr, const QBrush & b ) 
void setColor ( ColorGroup gr, ColorRole r, const QColor & c ) 
void setColor ( ColorRole r, const QColor & c )

note that "ColorRole" and "ColorGroup" are both enums within QPalette.

However, qt4-qtruby picks it up as this:

void QPalette::setBrush(QColorGroup::ColorRole, const QBrush&)
void QPalette::setBrush(QPalette::ColorGroup, QColorGroup::ColorRole, const QBrush&)

void QPalette::setColor(QColorGroup::ColorRole, const QColor&)
void QPalette::setColor(QPalette::ColorGroup, QColorGroup::ColorRole, const QColor&)

It seems that it's using QColorGroup::ColorRole instead of QPalette::ColorRole.
Comment 1 Caleb Tennis 2006-12-13 16:01:35 UTC
Forget this.  I had some bad code, and my rbqt4api and rbqtapi programs got intermixed.  Nothing wrong here.