From 70999c96a27777c2b1d0774b410680abd47eb131 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 21 Jan 2007 21:20:37 +0000 Subject: Cleanup of DolphinContextMenu: - don't use any deprecated methods anymore - temporary deactivated the "Open With..." submenu. There's a crash in KDirModel when invoking KFileItem::mimetype(); although the same code worked with an older version of kdelibs, I assume this is a Dolphin issue -> I'll do some further analyses... svn path=/trunk/playground/utils/dolphin/; revision=626023 --- src/dolphincontextmenu.h | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'src/dolphincontextmenu.h') diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h index 9f31b6271..69554b01f 100644 --- a/src/dolphincontextmenu.h +++ b/src/dolphincontextmenu.h @@ -21,10 +21,9 @@ #ifndef DOLPHINCONTEXTMENU_H #define DOLPHINCONTEXTMENU_H -#include -#include -#include -#include +#include +#include + #include #include #include @@ -84,7 +83,7 @@ private: * to the predecessor. */ QList insertOpenWithItems(KMenu* popup, - Q3ValueVector& openWithVector); + QVector& openWithVector); /** * Inserts the 'Actions...' submenu to \a popup. @@ -94,7 +93,7 @@ private: * services. */ QList insertActionItems(KMenu* popup, - Q3ValueVector& actionsVector); + QVector& actionsVector); /** * Returns true, if 'menu' contains already @@ -103,13 +102,6 @@ private: bool containsEntry(const KMenu* menu, const QString& entryName) const; - enum { - submenuID = 90, - bookmarkID = 91, - openWithIDStart = 100, - actionsIDStart = 1000 - }; - DolphinView* m_dolphinView; KFileItem* m_fileInfo; QPoint m_pos; -- cgit v1.3