File indexing completed on 2024-04-28 04:36:30

0001 /*
0002     SPDX-FileCopyrightText: 2007 Alexander Dymo <adymo@kdevelop.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "idocumentcontroller.h"
0008 
0009 namespace KDevelop {
0010 
0011 IDocumentController::IDocumentController(QObject *parent)
0012     :QObject(parent)
0013 {
0014 }
0015 
0016 KDevelop::IDocument* IDocumentController::openDocument( const QUrl &url,
0017         const KTextEditor::Cursor& cursor,
0018         DocumentActivationParams activationParams,
0019         const QString& encoding)
0020 {
0021     return openDocument(url, cursor.isValid() ? KTextEditor::Range(cursor, 0) : KTextEditor::Range::invalid(), activationParams, encoding);
0022 }
0023 
0024 }
0025 
0026 #include "moc_idocumentcontroller.cpp"