Bug 109976

Summary: Header-file: missing forward-declaration
Product: [Applications] digikam Reporter: Aurelien Bompard <gauret>
Component: Portability-RuntimeAssignee: 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

Description Aurelien Bompard 2005-08-01 22:52:10 UTC
Version:           libkexif 0.2.1 (using KDE KDE 3.4.2)
Installed from:    Compiled From Sources
Compiler:          gcc 4.0.1 
OS:                Linux

The File /usr/include/libkexif/kexifdialog.h defines the Class KExifDialog. When
compiling against this file (like for example with digikam-0.7.3), the Class
QComboBox is not known in line 54 of kexifdialog.h. This problem occurs because
no forward-declaration of QComboBox is given.

This bug was reported to the Red Hat bugzilla, please see https://bugzilla.redhat.com/162964 for more info.

The following patch fixes it :
--- libkexif-0.2.1/libkexif/kexifdialog.h	2004-12-20 22:00:20.000000000 +0100
+++ libkexif-0.2.1/libkexif/kexifdialog.h.fwddecl	2005-07-11 23:11:48.000000000 +0200
@@ -32,6 +32,7 @@
 class QString;
 class QLabel;
 class KExifWidget;
+class QComboBox;
 
 class KExifDialog : public KDialogBase
 {
Comment 1 Tom Albers 2005-08-07 02:01:27 UTC
This is fixed in svn, thanks for reporting!