6a87049
commit 25cc9c9876a5233bd630105d0110319892d4e18c
6a87049
Author: Gilles Caulier <caulier.gilles@gmail.com>
6a87049
Date:   Tue Jan 3 15:16:37 2012 +0100
6a87049
6a87049
    enable checkall and clearall buttons only with libkipi version 1.4.0
6a87049
    BUGS: 290496
6a87049
6a87049
diff --git a/utilities/setup/setupplugins.cpp b/utilities/setup/setupplugins.cpp
6a87049
index 0f4030a..b8efb35 100644
6a87049
--- a/utilities/setup/setupplugins.cpp
6a87049
+++ b/utilities/setup/setupplugins.cpp
6a87049
@@ -6,8 +6,8 @@
6a87049
  * Date        : 2004-01-02
6a87049
  * Description : setup Kipi plugins tab.
6a87049
  *
6a87049
- * Copyright (C) 2004-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
6a87049
- * Copyright (C) 2011 by Andi Clemens <andi dot clemens at googlemail dot com>
6a87049
+ * Copyright (C) 2004-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
6a87049
+ * Copyright (C) 2011-2012 by Andi Clemens <andi dot clemens at googlemail dot com>
6a87049
  *
6a87049
  * This program is free software; you can redistribute it
6a87049
  * and/or modify it under the terms of the GNU General
6a87049
@@ -100,6 +100,11 @@ SetupPlugins::SetupPlugins(QWidget* parent)
6a87049
 
6a87049
     panel->setLayout(mainLayout);
6a87049
 
6a87049
+#if KIPI_VERSION < 0x010400
6a87049
+    d->checkAllBtn->setVisible(false);
6a87049
+    d->clearBtn->setVisible(false);
6a87049
+#endif
6a87049
+
6a87049
     initPlugins();
6a87049
 
6a87049
     // --------------------------------------------------------
6a87049
@@ -158,14 +163,18 @@ void SetupPlugins::applyPlugins()
6a87049
 void SetupPlugins::slotCheckAll()
6a87049
 {
6a87049
     QApplication::setOverrideCursor(Qt::WaitCursor);
6a87049
+#if KIPI_VERSION >= 0x010400
6a87049
     d->kipiConfig->slotCheckAll();
6a87049
+#endif
6a87049
     QApplication::restoreOverrideCursor();
6a87049
 }
6a87049
 
6a87049
 void SetupPlugins::slotClear()
6a87049
 {
6a87049
     QApplication::setOverrideCursor(Qt::WaitCursor);
6a87049
+#if KIPI_VERSION >= 0x010400
6a87049
     d->kipiConfig->slotClear();
6a87049
+#endif
6a87049
     QApplication::restoreOverrideCursor();
6a87049
 }
bae5ed3
 }  // namespace Digikam
6a87049
diff --git a/utilities/setup/setupplugins.h b/utilities/setup/setupplugins.h
6a87049
index 271a569..114e0fa 100644
6a87049
--- a/utilities/setup/setupplugins.h
6a87049
+++ b/utilities/setup/setupplugins.h
6a87049
@@ -6,8 +6,8 @@
6a87049
  * Date        : 2004-01-02
6a87049
  * Description : setup Kipi plugins tab.
6a87049
  *
6a87049
- * Copyright (C) 2004-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
6a87049
- * Copyright (C) 2011 by Andi Clemens <andi dot clemens at googlemail dot com>
6a87049
+ * Copyright (C) 2004-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
6a87049
+ * Copyright (C) 2011-2012 by Andi Clemens <andi dot clemens at googlemail dot com>
6a87049
  *
6a87049
  * This program is free software; you can redistribute it
6a87049
  * and/or modify it under the terms of the GNU General