diff options
| author | David Faure <[email protected]> | 2007-10-01 17:06:34 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2007-10-01 17:06:34 +0000 |
| commit | dd34d651b5d1d4289d39bbd75b696ec5e1d6d0b3 (patch) | |
| tree | 2440a65c4ed9ebb47c17719cadab73c4ed1b4105 /src/dolphinpart.cpp | |
| parent | a793e113215663cd5e5f31cdded4b1fe8e41ff1b (diff) | |
Ported KonqPopupMenu away from xmlgui to make things debuggable (we had code that dynamically created XML, and then passed it for gui merging with KonqPopupMenu's own generated XML, that was too much magic and headaches).
There are now unit tests for KonqPopupMenu, and its code has a bit less magic hacks than before.
There is no more KonqPopupMenuPlugin though, but I'm happy to re-create it once there's a real use case for it.
svn path=/trunk/KDE/kdebase/apps/; revision=719676
Diffstat (limited to 'src/dolphinpart.cpp')
| -rw-r--r-- | src/dolphinpart.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index f88f91622..5bb59ec04 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -172,7 +172,9 @@ void DolphinPart::slotItemTriggered(const KFileItem& item) void DolphinPart::slotOpenContextMenu(const KFileItem& _item, const KUrl&) { - KParts::BrowserExtension::PopupFlags popupFlags = KParts::BrowserExtension::DefaultPopupItems; + KParts::BrowserExtension::PopupFlags popupFlags = KParts::BrowserExtension::DefaultPopupItems + | KParts::BrowserExtension::ShowProperties + | KParts::BrowserExtension::ShowUrlOperations; // TODO KonqKfmIconView had if ( !rootItem->isWritable() ) // popupFlags |= KParts::BrowserExtension::NoDeletion; @@ -186,7 +188,7 @@ void DolphinPart::slotOpenContextMenu(const KFileItem& _item, const KUrl&) } KFileItemList items; items.append(item); - emit m_extension->popupMenu( 0, QCursor::pos(), items, KParts::OpenUrlArguments(), KParts::BrowserArguments(), popupFlags ); + emit m_extension->popupMenu( QCursor::pos(), items, KParts::OpenUrlArguments(), KParts::BrowserArguments(), popupFlags ); } #include "dolphinpart.moc" |
