|
Krita Source Code Documentation
|
Public Member Functions | |
| Private (const Private &rhs) | |
| Private (KisImageWSP image) | |
| void | setImage (KisImageWSP image) |
| void | slotImageResolutionChanged (qreal xRes, qreal yRes) |
| ~Private () | |
Public Attributes | |
| KisImageWSP | image |
| QMetaObject::Connection | imageConnection |
| qreal | lastKnownXRes |
| qreal | lastKnownYRes |
Definition at line 28 of file KisImageResolutionProxy.cpp.
|
inline |
Definition at line 29 of file KisImageResolutionProxy.cpp.
References image, and setImage().
|
inline |
Definition at line 36 of file KisImageResolutionProxy.cpp.
References image, and setImage().
|
inline |
Since we are not using QObject for the connection, we should disconnect the connection automatically on destruction.
Definition at line 43 of file KisImageResolutionProxy.cpp.
References imageConnection.
| void KisImageResolutionProxy::Private::setImage | ( | KisImageWSP | image | ) |
NOTE: we cannot just use detached converter all the time, because we cannot update its values in time before the next update after image changed its resolution (the signal is emitted at the very end of the operation).
The layer will keep "the lastly used resolution" until being attached to the new image.
Definition at line 123 of file KisImageResolutionProxy.cpp.
References connect(), KisWeakSharedPtr< T >::data(), KisImage::sigResolutionChanged(), slotImageResolutionChanged(), KisImage::xRes(), and KisImage::yRes().
| void KisImageResolutionProxy::Private::slotImageResolutionChanged | ( | qreal | xRes, |
| qreal | yRes ) |
Definition at line 117 of file KisImageResolutionProxy.cpp.
References lastKnownXRes, lastKnownYRes, KisImageResolutionProxy::xRes(), and KisImageResolutionProxy::yRes().
| KisImageWSP KisImageResolutionProxy::Private::image |
Definition at line 54 of file KisImageResolutionProxy.cpp.
| QMetaObject::Connection KisImageResolutionProxy::Private::imageConnection |
Definition at line 57 of file KisImageResolutionProxy.cpp.
| qreal KisImageResolutionProxy::Private::lastKnownXRes |
Definition at line 55 of file KisImageResolutionProxy.cpp.
| qreal KisImageResolutionProxy::Private::lastKnownYRes |
Definition at line 56 of file KisImageResolutionProxy.cpp.