diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-02 15:50:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-03 22:56:09 +0900 |
commit | 7b525ca12009d79fe90020690a4e7f0716dc97c2 (patch) | |
tree | d0561e6888afed3a1aef5058cc5a1c6348546f2f /chalk/ui/layerlist.cpp | |
parent | c4525c81c3e7a2d7cc4c0afecc8bb5e217be9822 (diff) | |
download | koffice-7b525ca12009d79fe90020690a4e7f0716dc97c2.tar.gz koffice-7b525ca12009d79fe90020690a4e7f0716dc97c2.zip |
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 04e50e547f8ed2d6db996bc4816179fa962bd6b1)
Diffstat (limited to 'chalk/ui/layerlist.cpp')
-rw-r--r-- | chalk/ui/layerlist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chalk/ui/layerlist.cpp b/chalk/ui/layerlist.cpp index c7e97305e..c15c6d5e1 100644 --- a/chalk/ui/layerlist.cpp +++ b/chalk/ui/layerlist.cpp @@ -179,7 +179,7 @@ public: if( !m_img.isNull() ) { if( m_img.width() > MAX_SIZE || m_img.height() > MAX_SIZE ) - m_img = m_img.scale( MAX_SIZE, MAX_SIZE, TQ_ScaleMin ); + m_img = m_img.scale( MAX_SIZE, MAX_SIZE, TQImage::ScaleMin ); int y = 0; if( m_img.height() < text.height() ) y = text.height()/2 - m_img.height()/2; @@ -1128,7 +1128,7 @@ void LayerItem::drawPreview( TQPainter *p, const TQColorGroup &/*cg*/, const TQR if( d->previewChanged || r.size() != d->previewSize ) { //TODO handle width() != height() const int size = kMin( r.width(), kMax( previewImage()->width(), previewImage()->height() ) ); - const TQImage i = previewImage()->smoothScale( size, size, TQ_ScaleMin ); + const TQImage i = previewImage()->smoothScale( size, size, TQImage::ScaleMin ); d->scaledPreview.convertFromImage( i ); d->previewOffset.setX( r.width()/2 - i.width()/2 ); d->previewOffset.setY( r.height()/2 - i.height()/2 ); |