remove QApplication and QWidget dependencies in gui/image
The main place that'll still need work is QPixmap::fill(QWidget *) and QPixmap::grabWidget()bb10
parent
f1f5a80cfe
commit
4c6a882e86
|
|
@ -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)
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue