| 10 | { |
| 11 | public: |
| 12 | Window() : QDialog(nullptr, Qt::WindowMinMaxButtonsHint) |
| 13 | { |
| 14 | connect(&loadButton, &QPushButton::clicked, this, &Window::LoadScript); |
| 15 | |
| 16 | if (scriptEditor.toPlainText().isEmpty()) scriptEditor.setPlainText("/*https://doc.qt.io/qt-5/stylesheet-syntax.html*/"); |
| 17 | layout.addWidget(&scriptEditor); |
| 18 | layout.addWidget(&loadButton); |
| 19 | |
| 20 | resize(800, 600); |
| 21 | setWindowTitle("Styler"); |
| 22 | QMetaObject::invokeMethod(this, &QWidget::show, Qt::QueuedConnection); |
| 23 | |
| 24 | LoadScript(); |
| 25 | } |
| 26 | |
| 27 | ~Window() |
| 28 | { |
nothing calls this directly
no outgoing calls
no test coverage detected