From 8a39a595eb802b80a6ad756b0ee8939e9733e86f Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Mon, 5 Sep 2016 10:44:41 +0200 Subject: [PATCH] qt: Add missing header redirection * lang/qt/src/keyformailboxjob.h, lang/qt/src/qgpgmekeyformailboxjob.h: Fix includes. -- This ensures that when building qgpgme you do not need an installed gpgme++. --- lang/qt/src/keyformailboxjob.h | 7 ++++++- lang/qt/src/qgpgmekeyformailboxjob.h | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/lang/qt/src/keyformailboxjob.h b/lang/qt/src/keyformailboxjob.h index 9e76df51..d8b6c6b6 100644 --- a/lang/qt/src/keyformailboxjob.h +++ b/lang/qt/src/keyformailboxjob.h @@ -36,7 +36,12 @@ #include "job.h" -#include +#ifdef BUILDING_QGPGME +# include "key.h" +#else +# include +#endif + namespace GpgME { class Error; diff --git a/lang/qt/src/qgpgmekeyformailboxjob.h b/lang/qt/src/qgpgmekeyformailboxjob.h index 02a16d32..8ac2c1fc 100644 --- a/lang/qt/src/qgpgmekeyformailboxjob.h +++ b/lang/qt/src/qgpgmekeyformailboxjob.h @@ -38,8 +38,13 @@ #include "threadedjobmixin.h" -#include -#include +#ifdef BUILDING_QGPGME +# include "keylistresult.h" +# include "key.h" +#else +# include +# include +#endif namespace QGpgME {