[Development] [QTBUG-23273] Change to Q_DECLARE_INTERFACE interfaces

Thiago Macieira thiago.macieira at intel.com
Mon May 14 12:27:22 CEST 2012


On segunda-feira, 14 de maio de 2012 10.00.49, lars.knoll at nokia.com wrote:
> On 5/14/12 11:27 AM, "ext Thiago Macieira" <thiago.macieira at intel.com>
> 
> wrote:
> >On quarta-feira, 2 de maio de 2012 15.22.16, simon.hausmann at nokia.com
> >
> >wrote:
> >> I believe changing the string in Q_DECLARE_INTERFACE is binary
> >>
> >>incompatible
> >>
> >> but fully source compatible.
> >> 
> >> The string gets embedded in moc generated code as well as .o files on
> >>
> >>the
> >>
> >> caller side when doing a q_object_cast to an interface.
> >> 
> >> At run-time they must match for the cast to succeed.
> >
> >So it's ok to do a global search-and-replace changing com.trolltech to
> >org.qt-
> >project?
> 
> Yes. The risk of breaking things is IMO rather small. And if we have some
> regressions due to this later on, let's fix them. But this is now our only
> chance of fixing this. Can you search for com.nokia as well please?

There are no com.nokia interfaces in qtbase left. I don't think there have 
ever been.

It only appears in:
plugins/generic/meego/qmeegointegration.cpp:    : 
screenTopEdge(QStringLiteral("com.nokia.SensorService"), 
QStringLiteral("Screen.TopEdge"))
plugins/platforms/windows/qwindows.qdocconf:qhp.QtLighthouseWindowsDev.namespace        
= com.nokia.qt.developer.lighthouse

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120514/88d23bd9/attachment.sig>


More information about the Development mailing list