From a868603ec63a484205c718cbc194184c30b56f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Thu, 31 Jan 2019 13:54:59 +0100 Subject: [PATCH] Some cleanup Fixed alignment of text in pytthon widget --- PythonInterpreter/PythonInterpreter.cc | 22 ---------------------- widgets/pythonWidget/pythonWidget.cc | 2 ++ 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/PythonInterpreter/PythonInterpreter.cc b/PythonInterpreter/PythonInterpreter.cc index 491525b3..c2a47e17 100644 --- a/PythonInterpreter/PythonInterpreter.cc +++ b/PythonInterpreter/PythonInterpreter.cc @@ -228,22 +228,6 @@ void PythonInterpreter::pyError(const char* w) Q_EMIT log(LOGERR, QString(w)); } - - -//import openflipper -// -//a = openflipper.core() -// -//a.updateView() - -//print("AAAAAAAAAAAA") -//a = openflipper.core() -// -//print("BBBBBBBBBB") -//a.updateView() -//print("CCCCCCCCCc") - - namespace pybind11 { namespace detail { template <> struct type_caster { public: @@ -312,11 +296,5 @@ PYBIND11_EMBEDDED_MODULE(openflipper, m) { core.def("writeVersionNumbers", &Core::writeVersionNumbers); - - - - - - std::cerr << "CorePointer : " << core_ << std::endl;; } diff --git a/widgets/pythonWidget/pythonWidget.cc b/widgets/pythonWidget/pythonWidget.cc index f1d3afe3..2f103ad4 100644 --- a/widgets/pythonWidget/pythonWidget.cc +++ b/widgets/pythonWidget/pythonWidget.cc @@ -79,6 +79,8 @@ PythonWidget::PythonWidget(QWidget *parent ) connect( closeButton , SIGNAL(clicked() ) , this, SLOT(hide()) ); closeButton->setFocus(); + pythonInfo->setAlignment(Qt::AlignLeft); + pythonInfo->append("Plugins with Python support (use import to load the corresponding module!):\n"); QStringList pythonPlugins = getPythonPlugins(); -- GitLab