On terça-feira, 5 de novembro de 2013 11:09:48, Giuseppe D'Angelo wrote:
> >   class Q_WIDGETS_EXPORT QMacCocoaViewContainer : public QWidget
> >   {
> >       Q_OBJECT
> >
> >   public:
> > -    QMacCocoaViewContainer(void *cocoaViewToWrap, QWidget *parent = 0);
> > +    QMacCocoaViewContainer(NSView *cocoaViewToWrap, QWidget *parent = 0);
> >
> >       virtual ~QMacCocoaViewContainer();
> >
> > -    void setCocoaView(void *cocoaViewToWrap);
> > -    void *cocoaView() const;
> > +    void setCocoaView(NSView *view);
> > +    NSView *cocoaView() const;
> >
> >   private:
> >       Q_DECLARE_PRIVATE(QMacCocoaViewContainer)
> 
> Isn't this binary and source incompatible?

Yes.

Technically speaking, the cocoaView() const member is still binary compatible 
because we're talking about a Mac here and we know its ABI does not encode 
return types (except for template functions, which this one isn't).

But the constructor and the setter are definitely binary incompatible.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to