Bug 138751 - Invalid member generation for Qt::Palette - Qt 4.2.2
Summary: Invalid member generation for Qt::Palette - Qt 4.2.2
Status: RESOLVED NOT A BUG
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-13 15:47 UTC by Caleb Tennis
Modified: 2006-12-13 16:01 UTC (History)
0 users

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 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.