inherits documentation from base class */
| 701 | |
| 702 | /* inherits documentation from base class */ |
| 703 | void QCPPaintBufferPixmap::reallocateBuffer() |
| 704 | { |
| 705 | setInvalidated(); |
| 706 | if (!qFuzzyCompare(1.0, mDevicePixelRatio)) |
| 707 | { |
| 708 | #ifdef QCP_DEVICEPIXELRATIO_SUPPORTED |
| 709 | mBuffer = QPixmap(mSize*mDevicePixelRatio); |
| 710 | mBuffer.setDevicePixelRatio(mDevicePixelRatio); |
| 711 | #else |
| 712 | qDebug() << Q_FUNC_INFO << "Device pixel ratios not supported for Qt versions before 5.4"; |
| 713 | mDevicePixelRatio = 1.0; |
| 714 | mBuffer = QPixmap(mSize); |
| 715 | #endif |
| 716 | } else |
| 717 | { |
| 718 | mBuffer = QPixmap(mSize); |
| 719 | } |
| 720 | } |
| 721 | |
| 722 | |
| 723 | #ifdef QCP_OPENGL_PBUFFER |
nothing calls this directly
no test coverage detected