Add support for reading state
This commit is contained in:
parent
1eac3f6a83
commit
4c2a4790c0
12 changed files with 163 additions and 103 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include <QTextEdit>
|
||||
#include <QProcess>
|
||||
#include <QObject>
|
||||
#include <QTemporaryDir>
|
||||
|
||||
class PythonRunner : public QObject {
|
||||
Q_OBJECT
|
||||
|
|
@ -11,7 +12,7 @@ public:
|
|||
PythonRunner(QTextEdit* outputWidget, QObject* parent = nullptr);
|
||||
~PythonRunner();
|
||||
|
||||
void runScript(const QString& scriptContent);
|
||||
bool runScript(const QString& scriptContent);
|
||||
void stopScript();
|
||||
|
||||
private slots:
|
||||
|
|
@ -25,4 +26,6 @@ signals:
|
|||
private:
|
||||
QTextEdit* m_outputWidget;
|
||||
QProcess* m_process;
|
||||
bool ready;
|
||||
QTemporaryDir dir;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue