remove QApplication and QWidget dependencies in gui/image

The main place that'll still need work is QPixmap::fill(QWidget *)
and QPixmap::grabWidget()
bb10
Lars Knoll 2011-05-03 15:00:21 +02:00
parent f1f5a80cfe
commit 4c6a882e86
2 changed files with 3 additions and 3 deletions

View File

@ -288,7 +288,7 @@ QImage::Format QNativeImage::systemFormat()
#else // other platforms...
QNativeImage::QNativeImage(int width, int height, QImage::Format format, bool /* isTextBuffer */, QWidget *)
QNativeImage::QNativeImage(int width, int height, QImage::Format format, bool /* isTextBuffer */, QWindow *)
: image(width, height, format)
{

View File

@ -68,12 +68,12 @@
QT_BEGIN_NAMESPACE
class QWidget;
class QWindow;
class QNativeImage
{
public:
QNativeImage(int width, int height, QImage::Format format, bool isTextBuffer = false, QWidget *widget = 0);
QNativeImage(int width, int height, QImage::Format format, bool isTextBuffer = false, QWindow *widget = 0);
~QNativeImage();
inline int width() const;