diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-05-11 16:33:47 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-05-12 17:38:10 +0200 |
commit | 87aa164bb841a8ffe4f418f14f861b16a6780003 (patch) | |
tree | 1a69fc9ce740f37ade485d37f00ca6e22a0dc64c | |
parent | ac9ac39fde0adb59f3c696a8c18cc9be96c59742 (diff) | |
download | kchmviewer-87aa164bb841a8ffe4f418f14f861b16a6780003.tar.gz kchmviewer-87aa164bb841a8ffe4f418f14f861b16a6780003.zip |
Fix FTBFS for build without TDE integration.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit f0a3534123e54a962a4c7de7ebd332e6eae658d1)
-rw-r--r-- | src/kchmsetupdialog_impl.cpp | 5 | ||||
-rw-r--r-- | src/tde-tqt.h | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/kchmsetupdialog_impl.cpp b/src/kchmsetupdialog_impl.cpp index 7478aef..0c68cba 100644 --- a/src/kchmsetupdialog_impl.cpp +++ b/src/kchmsetupdialog_impl.cpp @@ -17,7 +17,9 @@ #include "kchmsetupdialog_impl.h" #include "kchmsetupdialog_impl.moc" +#if defined(USE_KDE) #include <tdeapplication.h> +#endif KCHMSetupDialog_impl::KCHMSetupDialog_impl(TQWidget* parent, const char* name, bool modal, WFlags fl) : KCHMSetupDialog(parent, name, modal, fl) @@ -26,6 +28,7 @@ KCHMSetupDialog_impl::KCHMSetupDialog_impl(TQWidget* parent, const char* name, b void KCHMSetupDialog_impl::slotShowHelp() { +#if defined(USE_KDE) kapp->invokeHelp(); +#endif } - diff --git a/src/tde-tqt.h b/src/tde-tqt.h index f60c09e..a449cf0 100644 --- a/src/tde-tqt.h +++ b/src/tde-tqt.h @@ -28,8 +28,6 @@ #define KQ_CLASSNAME(name) K##name #define TDEQ_CLASSNAME(name) TDE##name - #define KQ_DECLARECLASS(name) class KQ##name : public K##name - #define TDEQ_DECLARECLASS(name) class TDEQ##name : public TDE##name #include <tdeapplication.h> #include <tdemainwindow.h> @@ -48,7 +46,8 @@ #else /* !USE_KDE */ - #define KQ_CLASSNAME(name) Q##name + #define KQ_CLASSNAME(name) TQ##name + #define TDEQ_CLASSNAME(name) TQ##name #include <tqapplication.h> #include <tqmainwindow.h> |