[Development] Header diff for QtGui
Frederik Gladhorn
frederik.gladhorn at digia.com
Thu Jun 27 18:30:59 CEST 2013
Torsdag 27. juni 2013 15.21.26 skrev Knoll Lars:
> On 6/27/13 5:17 PM, "Thiago Macieira" <thiago.macieira at intel.com> wrote:
> >On quinta-feira, 27 de junho de 2013 12.22.51, Knoll Lars wrote:
> >> Ok, explanation sounds reasonable to me, and given that the classes were
> >> documented as internal this is acceptable IMO.
> >
> >Agreed. But we need an explanation on the QML side for QWindow:
> Alan, any comments?
>
> Lars
After investigating Shawn wrote a patch to revert the Q_REVISION.
https://codereview.qt-project.org/#change,60047
The properties were added wrongly and will break applications using the 5.0
import and this part of the API.
Cheers
Frederik
> >> >> > --- a/src/gui/kernel/qwindow.h
> >> >> > +++ b/src/gui/kernel/qwindow.h
> >> >> >
> >> >> > @@ -261,10 +286,12 @@ public Q_SLOTS:
> >> >> > void setWidth(int arg);
> >> >> > void setHeight(int arg);
> >> >> >
> >> >> > - void setMinimumWidth(int w);
> >> >> > - void setMinimumHeight(int h);
> >> >> > - void setMaximumWidth(int w);
> >> >> > - void setMaximumHeight(int h);
> >> >> > + Q_REVISION(1) void setMinimumWidth(int w);
> >> >> > + Q_REVISION(1) void setMinimumHeight(int h);
> >> >> > + Q_REVISION(1) void setMaximumWidth(int w);
> >> >> > + Q_REVISION(1) void setMaximumHeight(int h);
> >> >>
> >> >> The meta object system doesn't care about Q_REVISION. It will simply
> >> >>
> >> >>extract
> >> >>
> >> >> the information. So this is neither BIC nor SIC.
> >> >>
> >> >> However, the information is relevant to QML. QML experts, please
> >> >>
> >> >>comment on
> >> >>
> >> >> whether the change above is safe.
> >> >
> >> >If it was in the 5.0 release, I would say the properties should still
> >>
> >>be
> >>
> >> >there
> >> >and thus the Q_REVISION be removed since the classes otherwise suddenly
> >> >lose
> >> >the setters.
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
--
Best regards,
Frederik Gladhorn
Senior Software Engineer - Digia, Qt
Visit us on: http://qt.digia.com
More information about the Development
mailing list