| 68 | |
| 69 | private slots: |
| 70 | void init() { |
| 71 | m_doc = new RcxDocument(); |
| 72 | buildSmallTree(m_doc->tree); |
| 73 | m_doc->provider = std::make_unique<BufferProvider>(makeSmallBuffer()); |
| 74 | |
| 75 | m_splitter = new QSplitter(); |
| 76 | // Pass nullptr as parent so controller is not auto-deleted with splitter |
| 77 | m_ctrl = new RcxController(m_doc, nullptr); |
| 78 | m_editor = m_ctrl->addSplitEditor(m_splitter); |
| 79 | |
| 80 | m_splitter->resize(800, 600); |
| 81 | m_splitter->show(); |
| 82 | QVERIFY(QTest::qWaitForWindowExposed(m_splitter)); |
| 83 | QApplication::processEvents(); |
| 84 | } |
| 85 | |
| 86 | void cleanup() { |
| 87 | // Delete controller first (disconnects from editor signals) |
nothing calls this directly
no test coverage detected