| 755 | } |
| 756 | |
| 757 | KXMLGUIClient *Plugin::createGUIForMainWindow(Sublime::MainWindow* window) |
| 758 | { |
| 759 | auto ret = IPlugin::createGUIForMainWindow(window); |
| 760 | auto mainWindow = qobject_cast<KDevelop::MainWindow*>(window); |
| 761 | Q_ASSERT(mainWindow); |
| 762 | |
| 763 | auto wrapper = mainWindow->kateWrapper(); |
| 764 | auto view = m_plugin->createView(wrapper->interface()); |
| 765 | wrapper->addPluginView(pluginId(), view); |
| 766 | // ensure that unloading the plugin kills all views |
| 767 | m_tracker->append(view); |
| 768 | |
| 769 | return ret; |
| 770 | } |
| 771 | |
| 772 | KDevelop::ConfigPage* Plugin::configPage(int number, QWidget* parent) |
| 773 | { |
no test coverage detected