[Development] api changes

Thiago Macieira thiago.macieira at intel.com
Mon Apr 16 01:40:38 CEST 2012


On segunda-feira, 16 de abril de 2012 01.33.31, Stephen Kelly wrote:
> > The only applications that should do that are the workspace fixture ones:
> > kwin and plasma.
> 
> Yes, those are the ones that were brought up, together with the
> KWindowSystem class. Apart from those I don't think KDE uses X11, but even
> KWindowSystem might be partially obsoleted by QPA (there is a task to
> figure that out, but no one has taken it up yet).

Managing windows is a task only for the workspace applications. Putting those 
classes in a generic library is a mistake.

> QX11Info is used in many places (including some widgets), and perhaps some
> places where it shouldn't be used, but it's still a porting burden even to
> figure out how to port the stuff (It's not clear to me how to, and the
> changes file doesn't even note that the class is removed).
> 
> kf5{frameworks}$ grep -roh "QX11Info::[^\)]*)" * | sort | uniq
> QX11Info::appDpiX( int )
> QX11Info::appDpiY( int )
> QX11Info::appRootWindow()
> QX11Info::appRootWindow( screen_P )
> QX11Info::appScreen()
> QX11Info::appTime()
> QX11Info::appUserTime()
> QX11Info::display()
> QX11Info::screen()
> QX11Info::setAppDpiX(0, 96)
> QX11Info::setAppDpiY(0, 96)
> QX11Info::setAppTime(time)
> QX11Info::setAppTime(timestamp)
> QX11Info::setAppUserTime(time)
> QX11Info::setAppUserTime(timestamp)

Porting required for some of them, others need refactoring.

-- 
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/20120415/2d3dd1ed/attachment.sig>


More information about the Development mailing list