Samuel Rødal wrote: > What use is a QPlatformPixmapHandle having per-platform typedefs > (xcb_pixmap_t, HDC, etc) without #ifdefs to manipulate it using native > code in the first place? > > Can you give a platform-independent example use case? :)
It helps reducing the amount of user code within #ifdef therefore the risk of breaking branches that are not "active" on a developers machine. It can postpone the need to switch to native code, so helper function merely passing on such handles can be written completely #ifdef free. Structures keeping such handles can be defined more cleanly, similarly class interfaces. Ports to new platforms with new platform specific handles are easier as they touch less code. Etc etc. Andre' _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
