[Kde-imaging] kipi-plugins : Current SVN compilation under KDE 3.3

Loïc Brarda loic.brarda21 at fnac.net
Wed Oct 18 13:50:10 CEST 2006


Hi,

I'm trying to compile the current SVN kipi-plugins under a variant of
RedHat Enterprise Linux 4, which uses KDE 3.3.1.

It brakes on two places :

kipi-plugins/galleryexport :
gallerylist.cpp:62: error: `add' is not a member of `KStdGuiItem'
gallerylist.cpp:63: error: `configure' is not a member of `KStdGuiItem'
gallerylist.cpp:64: error: `remove' is not a member of `KStdGuiItem'

KStdGuiItem::add(), KStdGuiItem::configure()) and
KStdGuiItem::remove() are not known (they appeared in KDE 3.4). Thus
the following patch :

===================================================================
--- gallerylist.cpp     (revision 596722)
+++ gallerylist.cpp     (working copy)
@@ -59,9 +59,15 @@
   if (!blnShowOpen)
     showButtonOK(false);

+#if KDE_VERSION >= KDE_MAKE_VERSION(3,4,0)
   setButtonGuiItem(User3, KStdGuiItem::add());
   setButtonGuiItem(User2, KStdGuiItem::configure());
   setButtonGuiItem(User1, KStdGuiItem::remove());
+#else
+  setButtonGuiItem(User3, KGuiItem( i18n("Add"), "edit_add"));
+  setButtonGuiItem(User2, KGuiItem( i18n( "Confi&gure..." ), "configure" ));
+  setButtonGuiItem(User1, KGuiItem( i18n("Remove"), "edit_remove"));
+#endif
   setButtonGuiItem(Close, KStdGuiItem::close());
   setButtonGuiItem(Ok,    KStdGuiItem::open());


kipi-plugins/htmlexport :
generator.cpp: In member function `bool
KIPIHTMLExport::Generator::Private::generateImagesAndXML()':
generator.cpp:208 error: aggregate `QImage image' has incomplete type
and cannot be defined
generator.cpp:228: error: incomplete type `QImage' used in nested name specifier
generator.cpp:248: error: variable `QImage thumbnail' has initializer
but incomplete type
generator.cpp:248: error: incomplete type `QImage' used in nested name specifier
generator.cpp:261: error: invalid use of undefined type `struct QImage'

and the patch :
===================================================================
--- generator.cpp       (revision 596722)
+++ generator.cpp       (working copy)
@@ -26,6 +26,7 @@
 #include <qfile.h>
 #include <qpainter.h>
 #include <qregexp.h>
+#include <qimage.h>

 // KDE
 #include <kaboutdata.h>

I hope this will help.
   Loïc


More information about the Kde-imaging mailing list