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

Gilles Caulier caulier.gilles at free.fr
Thu Mar 30 18:20:56 BST 2006


SVN commit 524567 by cgilles:

digikam from trunk : patch from Julien Nardoux to improve toogle target/original image previews on mouse move in all image plugins.

CCMAIL: digikam-devel at kde.org

 M  +2 -2      imageguidewidget.cpp  
 M  +1 -1      imageguidewidget.h  
 M  +2 -2      imagewidget.cpp  


--- trunk/extragear/graphics/digikam/libs/widgets/imageplugins/imageguidewidget.cpp #524566:524567
@@ -573,7 +573,7 @@
 {
     if ( !d->focus && d->renderingPreviewMode == PreviewToogleOnMouseOver )
     {
-        d->onMouseMovePreviewToogled = true;
+        d->onMouseMovePreviewToogled = false;
         updatePixmap();
         repaint(false);
     }
@@ -583,7 +583,7 @@
 {
     if ( !d->focus && d->renderingPreviewMode == PreviewToogleOnMouseOver )
     {
-        d->onMouseMovePreviewToogled = false;
+        d->onMouseMovePreviewToogled = true;
         updatePixmap();
         repaint(false);
     }
--- trunk/extragear/graphics/digikam/libs/widgets/imageplugins/imageguidewidget.h #524566:524567
@@ -62,7 +62,7 @@
         PreviewBothImagesHorzCont,  // Horizontal with original and target in contiguous.
         PreviewBothImagesVertCont,  // Vertical with original and target in contiguous.
         PreviewTargetImage,         // Target image only.
-        PreviewToogleOnMouseOver,   // Target image if mouse is over image area, else original image.
+        PreviewToogleOnMouseOver,   // Original image if mouse is over image area, else target image.
         NoPreviewMode               // Target image only without information displayed.
     };
 
--- trunk/extragear/graphics/digikam/libs/widgets/imageplugins/imagewidget.cpp #524566:524567
@@ -144,8 +144,8 @@
     previewToogleMouseOverButton->setPixmap( QPixmap( directory + "tooglemouseover.png" ) );
     previewToogleMouseOverButton->setToggleButton(true);
     QWhatsThis::add( previewToogleMouseOverButton, i18n( "<p>If you enable this option, you will see "
-                                                         "the target image when the mouse is over image area, "
-                                                         "else the original image." ) );
+                                                         "the original image when the mouse is over image area, "
+                                                         "else the target image." ) );
 
     // -------------------------------------------------------------
     



More information about the Digikam-devel mailing list