Bug 93846

Summary: Keeping compatibility in Showfoto
Product: [Applications] digikam Reporter: Martin Laberge <mlsoft>
Component: Showfoto-CoreAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 7.6.0
Attachments: patch for showfoto kde-3.1 compatibility

Description Martin Laberge 2004-11-24 14:21:20 UTC
Version:           0.7.1-cvs (using KDE 3.1.4)
Installed from:    compiled sources
Compiler:          gcc version 3.2.3
OS:                Linux (i686) release 2.4.26

here is a little patch to keep kde-3.1 compatibility in the last changes in showfoto

--- showfoto.cpp.old	2004-11-24 08:07:36.000000000 -0500
+++ showfoto.cpp	2004-11-24 08:08:21.000000000 -0500
@@ -28,6 +28,8 @@
 #include <kimageio.h>
 #include <kaccel.h>
 
+#include <kdeversion.h>
+
 #include "canvas.h"
 #include "thumbbar.h"
 #include "showfoto.h"
@@ -92,8 +94,14 @@
                             this, SLOT(slotAutoFit()),
                             actionCollection(), "zoom_fit");
 
+#if KDE_VERSION >= 0x30200
     KStdAction::fullScreen(this, SLOT(slotToggleFullScreen()),
                            actionCollection(), this, "full_screen");
+#else
+    KAction("Fullscreen",Key_F,
+                           this,SLOT(slotToggleFullScreen()),
+                           actionCollection(), "full_screen");
+#endif
     
     createGUI("showfotoui.rc", false);
Comment 1 Martin Laberge 2004-11-24 14:22:53 UTC
Created attachment 8414 [details]
patch for showfoto kde-3.1 compatibility

there is the patch as an attachment
Comment 2 caulier.gilles 2004-11-24 14:46:16 UTC
Patch apply. thanks.