KDevelop::IOutputView::registerView vs KDevelop::IOutputView::registerToolView (how often do others update kdevplatform )

Keith Isdale <[email protected]> Mon, 21 Apr 2008 07:46:01 +1000
Newsgroups gmane.comp.kde.devel.quanta
Message-ID <[email protected]>
Hi,

When I recently did a p4 update of  kdevplatform I noticed a source 
incompatible change in KDevelop::IOutputView which effects the Upload plugin 
and the kxsldbg plugin. I wish to submit my code to suit the new API in  
KDevelop::IOutputView. 

Can I assume that others will soon also p4 update kdevplatform and hence need 
the attached patch plus the fix to the kxsldbg plugin?

Regards,

--
Keith

_______________________________________________
quanta-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/quanta-devel
patch.diff (text/x-diff, 808 B)
Index: plugins/upload/kdevuploadplugin.cpp
===================================================================
--- plugins/upload/kdevuploadplugin.cpp	(revision 798280)
+++ plugins/upload/kdevuploadplugin.cpp	(working copy)
@@ -223,8 +223,8 @@
     Q_ASSERT(plugin);
     if (plugin) {
         KDevelop::IOutputView* view = plugin->extension<KDevelop::IOutputView>();
-        int id = view->registerView(i18n("Upload"), KDevelop::IOutputView::AllowUserClose | KDevelop::IOutputView::AutoScroll);
-
+        int tvid = view->registerToolView(i18n("Upload"));
+        int id = view->registerOutputInToolView(tvid, i18n("Output"), KDevelop::IOutputView::AllowUserClose | KDevelop::IOutputView::AutoScroll);
         m_outputModel = new QStandardItemModel(this);
 
         view->setModel(id, m_outputModel);
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBIC7mf6GIxm21XV1gRAieaAJ9JOz+p87hU/1rfUnZt6dbhHoNXGwCfRWsT
m+Mhh9FPep7M+G/EWufvhB0=
=vINZ
-----END PGP SIGNATURE-----