Bug 93846 - Keeping compatibility in Showfoto
Summary: Keeping compatibility in Showfoto
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Showfoto-Core (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-24 14:21 UTC by Martin Laberge
Modified: 2022-01-20 11:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments
patch for showfoto kde-3.1 compatibility (792 bytes, patch)
2004-11-24 14:22 UTC, Martin Laberge
Details

Note You need to log in before you can comment on or make changes to this bug.
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.