KPropertiesDialog* KonqPopupMenu::showPropertiesDialog()
{
// It may be that the kfileitem was created by hand
// (see KonqKfmIconView::slotMouseButtonPressed)
// In that case, we can get more precise info in the properties
// (like permissions) if we stat the URL.
if ( m_lstItems.count() == 1 )
{
KFileItem * item = m_lstItems.first();
if (item->entry().count() == 0) // this item wasn't listed by a slave
{
// KPropertiesDialog will use stat to get more info on the file
return new KPropertiesDialog( item->url(), d->m_parentWidget );
}
}
return new KPropertiesDialog( m_lstItems, d->m_parentWidget );
这段代码是fc5kdebase里的,功能就右键菜单的“属性”,现在我想改下,就是把我指定的桌面.desktop文件的“属性”功能改成其他的,
KPropertiesDialog* KonqPopupMenu::showPropertiesDialog()
{
if ( )
{
system ("/usr/bin/sysinfo");
}
else eturn new KPropertiesDialog( m_lstItems, d->m_parentWidget );
}
我想在if中判断是否是我指定的.desktop文件,但是不知道怎么判断,请大家帮帮我,谢谢