Summary: | ktimetracker kontact plugin is missing context menu | ||
---|---|---|---|
Product: | [Applications] ktimetracker | Reporter: | Thorsten Staerk <dev> |
Component: | general | Assignee: | Thorsten Staerk <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Thorsten Staerk
2009-07-07 20:46:43 UTC
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. |