D10587: Restore KTextEditor Document Dbus bindings

Anthony Fieroni noreply at phabricator.kde.org
Fri Feb 16 22:37:57 UTC 2018


anthonyfieroni added a comment.


  In D10587#207885 <https://phabricator.kde.org/D10587#207885>, @lukedashjr wrote:
  
  > I don't think I would know how to make these changes. I was only able to get this to work because it was mostly a simple revert.
  
  
  It should be same: at https://phabricator.kde.org/source/kate/browse/master/kate/katedocmanager.cpp;2641fc835e5fecb539122dcfbee1caa42617ebe4$89
  
    qRegisterMetaType<KTextEditor::Document*>("KTextEditor::Document*");
    new DocumentAdaptor(doc);
    const QString pathName = QString::fromLatin1("/Kate/Document/%1").arg(++dbusDocumentNumber);
    QDBusConnection::sessionBus().registerObject(pathName, doc, QDBusConnection::ExportAdaptors | QDBusConnection::ExportScriptableSlots);
  
  Other is same.

REPOSITORY
  R39 KTextEditor

REVISION DETAIL
  https://phabricator.kde.org/D10587

To: lukedashjr, cullmann, dhaumann, gregormi
Cc: anthonyfieroni, #ktexteditor, #kate, asturmlechner, gregormi, dhaumann, cullmann, #frameworks, michaelh, kevinapavew, ngraham, demsking, head7, kfunk, sars
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180216/d6ae65a1/attachment.html>


More information about the Kde-frameworks-devel mailing list