]> git.pld-linux.org Git - packages/digikam.git/blob - digikam-2.5.0-libkipi-1.4.0.patch
- up to 2.5.0
[packages/digikam.git] / digikam-2.5.0-libkipi-1.4.0.patch
1 commit 25cc9c9876a5233bd630105d0110319892d4e18c
2 Author: Gilles Caulier <caulier.gilles@gmail.com>
3 Date:   Tue Jan 3 15:16:37 2012 +0100
4
5     enable checkall and clearall buttons only with libkipi version 1.4.0
6     BUGS: 290496
7
8 diff --git a/utilities/setup/setupplugins.cpp b/utilities/setup/setupplugins.cpp
9 index 0f4030a..b8efb35 100644
10 --- a/utilities/setup/setupplugins.cpp
11 +++ b/utilities/setup/setupplugins.cpp
12 @@ -6,8 +6,8 @@
13   * Date        : 2004-01-02
14   * Description : setup Kipi plugins tab.
15   *
16 - * Copyright (C) 2004-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
17 - * Copyright (C) 2011 by Andi Clemens <andi dot clemens at googlemail dot com>
18 + * Copyright (C) 2004-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
19 + * Copyright (C) 2011-2012 by Andi Clemens <andi dot clemens at googlemail dot com>
20   *
21   * This program is free software; you can redistribute it
22   * and/or modify it under the terms of the GNU General
23 @@ -100,6 +100,11 @@ SetupPlugins::SetupPlugins(QWidget* parent)
24  
25      panel->setLayout(mainLayout);
26  
27 +#if KIPI_VERSION < 0x010400
28 +    d->checkAllBtn->setVisible(false);
29 +    d->clearBtn->setVisible(false);
30 +#endif
31 +
32      initPlugins();
33  
34      // --------------------------------------------------------
35 @@ -158,14 +163,18 @@ void SetupPlugins::applyPlugins()
36  void SetupPlugins::slotCheckAll()
37  {
38      QApplication::setOverrideCursor(Qt::WaitCursor);
39 +#if KIPI_VERSION >= 0x010400
40      d->kipiConfig->slotCheckAll();
41 +#endif
42      QApplication::restoreOverrideCursor();
43  }
44  
45  void SetupPlugins::slotClear()
46  {
47      QApplication::setOverrideCursor(Qt::WaitCursor);
48 +#if KIPI_VERSION >= 0x010400
49      d->kipiConfig->slotClear();
50 +#endif
51      QApplication::restoreOverrideCursor();
52  }
53  }  // namespace Digikam
54 diff --git a/utilities/setup/setupplugins.h b/utilities/setup/setupplugins.h
55 index 271a569..114e0fa 100644
56 --- a/utilities/setup/setupplugins.h
57 +++ b/utilities/setup/setupplugins.h
58 @@ -6,8 +6,8 @@
59   * Date        : 2004-01-02
60   * Description : setup Kipi plugins tab.
61   *
62 - * Copyright (C) 2004-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
63 - * Copyright (C) 2011 by Andi Clemens <andi dot clemens at googlemail dot com>
64 + * Copyright (C) 2004-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
65 + * Copyright (C) 2011-2012 by Andi Clemens <andi dot clemens at googlemail dot com>
66   *
67   * This program is free software; you can redistribute it
68   * and/or modify it under the terms of the GNU General
This page took 0.556696 seconds and 3 git commands to generate.