|
Krita Source Code Documentation
|
Public Member Functions | |
| Private (const Private &rhs, KisImageResolutionProxy *_q) | |
| Private (KisImageWSP image, KisImageResolutionProxy *_q) | |
| void | setImage (KisImageWSP image) |
| void | slotImageResolutionChanged (qreal xRes, qreal yRes) |
| ~Private () | |
Public Attributes | |
| KisImageWSP | image |
| QMetaObject::Connection | imageConnection |
| qreal | lastKnownXRes |
| qreal | lastKnownYRes |
| KisImageResolutionProxy * | q {nullptr} |
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 37 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 45 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 126 of file KisImageResolutionProxy.cpp.
References KisWeakSharedPtr< T >::data(), KisImage::sigResolutionChanged(), slotImageResolutionChanged(), KisImage::xRes(), and KisImage::yRes().
| void KisImageResolutionProxy::Private::slotImageResolutionChanged | ( | qreal | xRes, |
| qreal | yRes ) |
Definition at line 120 of file KisImageResolutionProxy.cpp.
References lastKnownXRes, lastKnownYRes, KisImageResolutionProxy::xRes(), and KisImageResolutionProxy::yRes().
| KisImageWSP KisImageResolutionProxy::Private::image |
Definition at line 57 of file KisImageResolutionProxy.cpp.
| QMetaObject::Connection KisImageResolutionProxy::Private::imageConnection |
Definition at line 60 of file KisImageResolutionProxy.cpp.
| qreal KisImageResolutionProxy::Private::lastKnownXRes |
Definition at line 58 of file KisImageResolutionProxy.cpp.
| qreal KisImageResolutionProxy::Private::lastKnownYRes |
Definition at line 59 of file KisImageResolutionProxy.cpp.
| KisImageResolutionProxy* KisImageResolutionProxy::Private::q {nullptr} |
Definition at line 56 of file KisImageResolutionProxy.cpp.