src/gui/image/qpixmap.cpp File Reference

#include <qglobal.h>
#include "qpixmap.h"
#include "qpixmap_p.h"
#include "qbitmap.h"
#include "qimage.h"
#include "qwidget.h"
#include "qpainter.h"
#include "qdatastream.h"
#include "qbuffer.h"
#include "qapplication.h"
#include <private/qwidget_p.h>
#include "qevent.h"
#include "qfile.h"
#include "qfileinfo.h"
#include "qpixmapcache.h"
#include "qdatetime.h"
#include "qimagereader.h"
#include "qimagewriter.h"
#include "qpaintengine.h"
#include "qx11info_x11.h"
#include <private/qt_x11_p.h>

Include dependency graph for qpixmap.cpp:

Go to the source code of this file.

Typedefs

typedef void(*) _qt_pixmap_cleanup_hook (int)

Functions

Q_GUI_EXPORT qint64 qt_pixmap_id (const QPixmap &pixmap)
static void sendResizeEvents (QWidget *target)

Variables

Q_GUI_EXPORT _qt_pixmap_cleanup_hook qt_pixmap_cleanup_hook = 0


Typedef Documentation

typedef void(*) _qt_pixmap_cleanup_hook(int)

Definition at line 52 of file qpixmap.cpp.


Function Documentation

Q_GUI_EXPORT qint64 qt_pixmap_id ( const QPixmap pixmap  ) 

Definition at line 55 of file qpixmap.cpp.

00056 {
00057     return -(((qint64) pixmap.data->ser_no) << 32) | ((qint64) (pixmap.data->detach_no));
00058 }

static void sendResizeEvents ( QWidget target  )  [static]

Definition at line 748 of file qpixmap.cpp.

References QObject::children(), i, QObject::QObjectList(), QCoreApplication::sendEvent(), QWidget::size(), and Qt::WA_PendingResizeEvent.

Referenced by QPixmap::grabWidget(), and sendResizeEvents().

00749 {
00750     QResizeEvent e(target->size(), QSize());
00751     QApplication::sendEvent(target, &e);
00752 
00753     const QObjectList children = target->children();
00754     for (int i = 0; i < children.size(); ++i) {
00755         QWidget *child = static_cast<QWidget*>(children.at(i));
00756         if (child->isWidgetType() && !child->isWindow() && child->testAttribute(Qt::WA_PendingResizeEvent))
00757             sendResizeEvents(child);
00758     }
00759 }

Here is the call graph for this function:


Variable Documentation

Q_GUI_EXPORT _qt_pixmap_cleanup_hook qt_pixmap_cleanup_hook = 0

Definition at line 53 of file qpixmap.cpp.

Referenced by QGLContextPrivate::bindTexture(), QPixmap::deref(), and QGLContext::~QGLContext().


Generated on Thu Mar 15 13:20:05 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1