Version: (using Devel) OS: Linux Installed from: Compiled sources Since http://websvn.kde.org/?view=rev&revision=991655, made for https://bugs.kde.org/show_bug.cgi?id=198997, the kontact plugin of ktimetracker no longer shows a context menu.
I guess related are lines 106ff in mainwindow.cpp: // Setup context menu request handling connect( m_part->widget(), SIGNAL( contextMenuRequested( const QPoint& ) ), this, SLOT( taskViewCustomContextMenuRequested( const QPoint& ) ) );
Cannot put the code QMenu* pop = dynamic_cast<QMenu*>( factory()->container( i18n( "task_popup" ), this ) into taskview because factory is inherited from KXmlGuiClient
Cannot put the code QMenu* pop = dynamic_cast<QMenu*>( factory()->container( i18n( "task_popup" ), this ) into timetrackerwidget because factory() delivers 0
I find that loadPart() fails. See http://techbase.kde.org/Development/Tutorials/Writing_kontact_plugins.
loadParts uses the XML file to look up its popup menu. kDebug(5970) << "xmlfile" << mPart->xmlFile(); delivers /root/.kde/share/apps/kontact/default-ktimetracker.rc which is EMPTY
/root/.kde/share/apps/kontact/default-ktimetracker.rc is empty. When I copy ktimetrackerui.rc over it, I can run make install and it is still empty. But when I run kontact, it is emptied again.