From 470f345eca4767da704802cdf1f7ace4e03c6101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 5 Feb 2019 12:14:24 +0100 Subject: [PATCH] Build without python support --- widgets/pythonWidget/pythonWidget.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/pythonWidget/pythonWidget.cc b/widgets/pythonWidget/pythonWidget.cc index 6cf60dbc..14c06ff7 100644 --- a/widgets/pythonWidget/pythonWidget.cc +++ b/widgets/pythonWidget/pythonWidget.cc @@ -50,6 +50,7 @@ #include "pythonWidget.hh" #include "PythonSyntaxHighlighter.hh" +#include #include #include #include @@ -79,6 +80,7 @@ PythonWidget::PythonWidget(QWidget *parent ) connect( closeButton , SIGNAL(clicked() ) , this, SLOT(hide()) ); closeButton->setFocus(); +#ifdef PYTHON_ENABLED pythonInfo->setAlignment(Qt::AlignLeft); pythonInfo->append("Plugins with Python support (use import to load the corresponding module!):\n"); @@ -104,7 +106,7 @@ PythonWidget::PythonWidget(QWidget *parent ) edit->setHtml(data); } - +#endif } -- GitLab