[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 138751] New: Invalid member generation for Qt::Palette - Qt
From:       Caleb Tennis <caleb () aei-tech ! com>
Date:       2006-12-13 14:47:38
Message-ID: 20061213154737.138751.caleb () aei-tech ! com
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=138751         
           Summary: Invalid member generation for Qt::Palette - Qt 4.2.2
           Product: bindings
           Version: unspecified
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kde-bindings kde org
        ReportedBy: caleb aei-tech com


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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic