diff --git a/shell/ktexteditorpluginintegration.h b/shell/ktexteditorpluginintegration.h --- a/shell/ktexteditorpluginintegration.h +++ b/shell/ktexteditorpluginintegration.h @@ -77,6 +77,7 @@ KTextEditor::View *activeView() const; QObject *pluginView(const QString &id) const; + void splitView(Qt::Orientation orientation); QWidget *createViewBar(KTextEditor::View *view); diff --git a/shell/ktexteditorpluginintegration.cpp b/shell/ktexteditorpluginintegration.cpp --- a/shell/ktexteditorpluginintegration.cpp +++ b/shell/ktexteditorpluginintegration.cpp @@ -349,6 +349,11 @@ KTextEditor::Editor::instance()->setApplication(app); } +void MainWindow::splitView(Qt::Orientation orientation) +{ + m_mainWindow->split(orientation); +} + } #include "ktexteditorpluginintegration.moc" diff --git a/shell/mainwindow.h b/shell/mainwindow.h --- a/shell/mainwindow.h +++ b/shell/mainwindow.h @@ -57,6 +57,7 @@ /*! @p status must implement KDevelop::IStatus */ void registerStatus(QObject* status); KTextEditorIntegration::MainWindow *kateWrapper() const; + void split(Qt::Orientation orientation); public Q_SLOTS: /*! Shows an error message in the status bar. diff --git a/shell/mainwindow.cpp b/shell/mainwindow.cpp --- a/shell/mainwindow.cpp +++ b/shell/mainwindow.cpp @@ -167,6 +167,11 @@ return d->kateWrapper(); } +void MainWindow::split(Qt::Orientation orientation) +{ + d->split(orientation); +} + void MainWindow::ensureVisible() { if (isMinimized()) {