static void qt_insertWindowSurface(int winId, QWSWindowSurface *surface) { if (!surface) winIdToSurfaceMap()->remove(winId); else winIdToSurfaceMap()->insert(winId, surface); }
QWSWindowSurface::~QWSWindowSurface() { #ifdef Q_BACKINGSTORE_SUBSURFACES winIdToSurfaceMap()->remove(winId()); #endif delete d_ptr; }
QWSWindowSurface* qt_findWindowSurface(int winId) { return winIdToSurfaceMap()->value(winId); }