examples/threads/mandelbrot/mandelbrotwidget.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    63     centerY = DefaultCenterY;
    63     centerY = DefaultCenterY;
    64     pixmapScale = DefaultScale;
    64     pixmapScale = DefaultScale;
    65     curScale = DefaultScale;
    65     curScale = DefaultScale;
    66 
    66 
    67     qRegisterMetaType<QImage>("QImage");
    67     qRegisterMetaType<QImage>("QImage");
    68     connect(&thread, SIGNAL(renderedImage(const QImage &, double)),
    68     connect(&thread, SIGNAL(renderedImage(QImage,double)),
    69             this, SLOT(updatePixmap(const QImage &, double)));
    69             this, SLOT(updatePixmap(QImage,double)));
    70 
    70 
    71     setWindowTitle(tr("Mandelbrot"));
    71     setWindowTitle(tr("Mandelbrot"));
    72 #ifndef QT_NO_CURSOR
    72 #ifndef QT_NO_CURSOR
    73     setCursor(Qt::CrossCursor);
    73     setCursor(Qt::CrossCursor);
    74 #endif
    74 #endif