Commit 470f345e authored by Jan Möbius's avatar Jan Möbius

Build without python support

parent 34ffc272
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
#include "pythonWidget.hh" #include "pythonWidget.hh"
#include "PythonSyntaxHighlighter.hh" #include "PythonSyntaxHighlighter.hh"
#include <OpenFlipper/common/GlobalOptions.hh>
#include <OpenFlipper/BasePlugin/PythonFunctionsCore.hh> #include <OpenFlipper/BasePlugin/PythonFunctionsCore.hh>
#include <iostream> #include <iostream>
#include <QObject> #include <QObject>
...@@ -79,6 +80,7 @@ PythonWidget::PythonWidget(QWidget *parent ) ...@@ -79,6 +80,7 @@ PythonWidget::PythonWidget(QWidget *parent )
connect( closeButton , SIGNAL(clicked() ) , this, SLOT(hide()) ); connect( closeButton , SIGNAL(clicked() ) , this, SLOT(hide()) );
closeButton->setFocus(); closeButton->setFocus();
#ifdef PYTHON_ENABLED
pythonInfo->setAlignment(Qt::AlignLeft); pythonInfo->setAlignment(Qt::AlignLeft);
pythonInfo->append("Plugins with Python support (use import to load the corresponding module!):\n"); pythonInfo->append("Plugins with Python support (use import to load the corresponding module!):\n");
...@@ -104,7 +106,7 @@ PythonWidget::PythonWidget(QWidget *parent ) ...@@ -104,7 +106,7 @@ PythonWidget::PythonWidget(QWidget *parent )
edit->setHtml(data); edit->setHtml(data);
} }
#endif
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment