Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, October 2006
Probably bug in Qt 4.2. QtWizard-2.0-commercial


Message 1 in thread

Hi,

In the code for the comparison operator for the QtWizard LayoutInfo class it
looks like the "spacing == other.childMargin" line is an error and it should
be compared with other.spacing instead.

<code>
bool QtWizard::LayoutInfo::operator==(const LayoutInfo &other)
{
    return topLevelMargin == other.topLevelMargin
           && childMargin == other.childMargin
           && spacing == other.childMargin
           && buttonSpacing == other.buttonSpacing
           && wizStyle == other.wizStyle
           && header == other.header
           && watermark == other.watermark
           && title == other.title
           && subTitle == other.subTitle
           && extension == other.extension;
}
</code>
-- 
 [ signature omitted ] 

Message 2 in thread

> In the code for the comparison operator for the QtWizard LayoutInfo class it
> looks like the "spacing == other.childMargin" line is an error and it should
> be compared with other.spacing instead.
> 
> <code>
> bool QtWizard::LayoutInfo::operator==(const LayoutInfo &other)
> {
>     return topLevelMargin == other.topLevelMargin
>            && childMargin == other.childMargin
>            && spacing == other.childMargin
>            && buttonSpacing == other.buttonSpacing
>            && wizStyle == other.wizStyle
>            && header == other.header
>            && watermark == other.watermark
>            && title == other.title
>            && subTitle == other.subTitle
>            && extension == other.extension;
> }
> </code>

This list is just a user community.  You probably want to put this
information in here, especially since it seems like you're right:

    http://www.trolltech.com/developer/task-tracker

Nathan


--
 [ signature omitted ]