digikam-4.4.0-libkexiv2.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. commit f6945f23e0ed1e11f26e2c7e62b02baa8cfa640e
  2. Author: Pino Toscano <pino@kde.org>
  3. Date: Tue Oct 14 22:26:19 2014 +0200
  4. fix libkexiv2 version for AltLangStrEdit::textEdit()
  5. it is part of current libkexiv2/master only (i.e. post 4.14.x, which
  6. is 2.3.x)
  7. diff --git a/libs/imageproperties/captionedit.cpp b/libs/imageproperties/captionedit.cpp
  8. index 88413fc..70bdb6d 100644
  9. --- a/libs/imageproperties/captionedit.cpp
  10. +++ b/libs/imageproperties/captionedit.cpp
  11. @@ -202,7 +202,7 @@ void CaptionEdit::slotAuthorChanged(const QString& text)
  12. MsgTextEdit* CaptionEdit::textEdit() const
  13. {
  14. -#if KEXIV2_VERSION >= 0x020302
  15. +#if KEXIV2_VERSION >= 0x020400
  16. return d->altLangStrEdit->textEdit();
  17. #else
  18. return 0;
  19. diff --git a/libs/imageproperties/imagedescedittab.cpp b/libs/imageproperties/imagedescedittab.cpp
  20. index ebfbae1..3d12777 100644
  21. --- a/libs/imageproperties/imagedescedittab.cpp
  22. +++ b/libs/imageproperties/imagedescedittab.cpp
  23. @@ -429,7 +429,7 @@ ImageDescEditTab::ImageDescEditTab(QWidget* const parent)
  24. // Initialize ---------------------------------------------
  25. -#if KEXIV2_VERSION >= 0x020302
  26. +#if KEXIV2_VERSION >= 0x020400
  27. d->titleEdit->textEdit()->installEventFilter(this);
  28. d->captionsEdit->textEdit()->installEventFilter(this);
  29. #endif
  30. @@ -532,7 +532,7 @@ void ImageDescEditTab::setFocusToNewTagEdit()
  31. void ImageDescEditTab::setFocusToTitlesEdit()
  32. {
  33. d->tabWidget->setCurrentIndex(Private::DESCRIPTIONS);
  34. -#if KEXIV2_VERSION >= 0x020302
  35. +#if KEXIV2_VERSION >= 0x020400
  36. d->titleEdit->textEdit()->setFocus();
  37. #endif
  38. }
  39. @@ -540,7 +540,7 @@ void ImageDescEditTab::setFocusToTitlesEdit()
  40. void ImageDescEditTab::setFocusToCommentsEdit()
  41. {
  42. d->tabWidget->setCurrentIndex(Private::DESCRIPTIONS);
  43. -#if KEXIV2_VERSION >= 0x020302
  44. +#if KEXIV2_VERSION >= 0x020400
  45. d->captionsEdit->textEdit()->setFocus();
  46. #endif
  47. }