calamares/src/libcalamaresui/PythonQtConsoleViewStep.cpp

22 lines
565 B
C++
Raw Normal View History

#include "PythonQtConsoleViewStep.h"
using namespace Calamares;
PythonQtConsoleViewStep::PythonQtConsoleViewStep( PythonQtObjectPtr cxt,
QObject* parent )
: ViewStep( parent )
{
m_cxt = cxt;
qDebug() << "SMO" << PythonQtConsoleViewStep::staticMetaObject.className();
PythonQt::self()->registerClass( &PythonQtConsoleViewStep::staticMetaObject, "Calamares" );
m_console = new PythonQtScriptingConsole( nullptr, m_cxt );
}
QWidget*
PythonQtConsoleViewStep::widget()
{
return m_console;
}