| 44 | { |
| 45 | public: |
| 46 | Window() : QDialog(nullptr, Qt::WindowMinMaxButtonsHint) |
| 47 | { |
| 48 | connect(&loadButton, &QPushButton::clicked, this, &Window::LoadScript); |
| 49 | |
| 50 | if (scriptEditor.toPlainText().isEmpty()) scriptEditor.setPlainText(LUA_INTRO); |
| 51 | layout.addWidget(&scriptEditor); |
| 52 | layout.addWidget(&loadButton); |
| 53 | |
| 54 | resize(800, 600); |
| 55 | setWindowTitle("Lua"); |
| 56 | QMetaObject::invokeMethod(this, &QWidget::show, Qt::QueuedConnection); |
| 57 | |
| 58 | LoadScript(); |
| 59 | } |
| 60 | |
| 61 | ~Window() |
| 62 | { |
nothing calls this directly
no outgoing calls
no test coverage detected