WPaintDevice *WWidgetRasterPainter::getPaintDevice(bool paintUpdate) { if (!device_ || widget_->sizeChanged_) { #ifdef WT_HAS_WRASTERIMAGE delete device_; device_ = createPaintDevice(paintUpdate); #else throw WException("Wt was built without WRasterImage (graphicsmagick)"); #endif } #ifdef WT_HAS_WRASTERIMAGE if (!paintUpdate) device_->clear(); return device_; #else return 0; #endif }
void Pt_MSlider::init() { fetchNewRow(); createController(); createView(); if (this->currentView) { this->m_subject->setView(this->currentView); // transfers ownership to controller } //wait for the resource loading to finish while (MTheme::instance()->hasPendingRequests()) { usleep(100); QCoreApplication::processEvents(); } // create pixmap paintdevice createPaintDevice(); }
WPaintDevice *WWidgetCanvasPainter::getPaintDevice(bool paintUpdate) { return createPaintDevice(paintUpdate); }
WPaintDevice *WWidgetVectorPainter::getPaintDevice(bool paintUpdate) { return createPaintDevice(paintUpdate); }