[Digikam-devel] extragear/graphics/digikam/libs/widgets/imageplugins

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] extragear/graphics/digikam/libs/widgets/imageplugins

Gilles Caulier
SVN commit 523058 by cgilles:

digikam from trunk : Preparing code for 0.9.1-beta1 : Removing old methods from common widgets about image data management available to all image plugins

CCMAIL: [hidden email]

 M  +0 -12     imagepannelwidget.cpp  
 M  +0 -4      imagepannelwidget.h  
 M  +0 -16     imageregionwidget.cpp  
 M  +0 -4      imageregionwidget.h  


--- trunk/extragear/graphics/digikam/libs/widgets/imageplugins/imagepannelwidget.cpp #523057:523058
@@ -477,18 +477,6 @@
                         .arg(rect.right()).arg(rect.bottom()));
 }
 
-// FIXME remove these methods when all image plugins will be ported to DIMG.
-
-QImage ImagePannelWidget::getOriginalClipImage(void)
-{
-    return ( d->imageRegionWidget->getImageRegionData() );
-}
-
-void ImagePannelWidget::setPreviewImageData(QImage img)
-{
-    d->imageRegionWidget->updatePreviewImage(&img);
-}    
-
 }  // NameSpace Digikam
 
 #include "imagepannelwidget.moc"
--- trunk/extragear/graphics/digikam/libs/widgets/imageplugins/imagepannelwidget.h #523057:523058
@@ -79,10 +79,6 @@
     
     KProgress *progressBar(void);
           
-    // FIXME remove these methods when all image plugins will be ported to DIMG.
-    QImage getOriginalClipImage(void);
-    void   setPreviewImageData(QImage img);
-          
 public slots:
 
     // Set the top/Left conner clip position.
--- trunk/extragear/graphics/digikam/libs/widgets/imageplugins/imageregionwidget.cpp #523057:523058
@@ -495,22 +495,6 @@
     setCursor( KCursor::handCursor() );    
 }
 
-// ---------------------------------------------------------------------------
-// FIXME remove these methods when all image plugins will be ported to DIMG.
-
-void ImageRegionWidget::updatePreviewImage(QImage *img)
-{
-    QPixmap pix( img->scale((uint)(img->width()  * d->zoomFactor),
-                            (uint)(img->height() * d->zoomFactor)));
-    QRect area = getLocalTargetImageRegion();
-    copyBlt( d->pixmap, area.x(), area.y(), &pix, 0, 0, area.width(), area.height() );
-}
-
-QImage ImageRegionWidget::getImageRegionData(void)
-{
-    return ( d->iface->getOriginalImg()->copyQImage(getImageRegionToRender()) );
-}
-
 }  // NameSpace Digikam
 
 #include "imageregionwidget.moc"
--- trunk/extragear/graphics/digikam/libs/widgets/imageplugins/imageregionwidget.h #523057:523058
@@ -77,10 +77,6 @@
     
     void   setHighLightPoints(QPointArray pointsList);
             
-    // FIXME remove these methods when all image plugins will be ported to DIMG.
-    QImage getImageRegionData(void);
-    void   updatePreviewImage(QImage *img);
-            
 signals:
     
     void contentsMovedEvent( bool target );
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel