#ifndef DOLPHINCONTEXTMENU_H
#define DOLPHINCONTEXTMENU_H
-#include <qpoint.h>
-#include <qstring.h>
-#include <q3valuelist.h>
-#include <q3valuevector.h>
+#include <QString>
+#include <QVector>
+
#include <kservice.h>
#include <kpropertiesdialog.h>
#include <kdedesktopmimetype.h>
* @fileInfo Pointer to the file item the context menu
* is applied. If 0 is passed, the context menu
* is above the viewport.
- * @pos Position of the upper left edge of the context menu.
*/
DolphinContextMenu(DolphinView* parent,
- KFileItem* fileInfo,
- const QPoint& pos);
+ KFileItem* fileInfo);
virtual ~DolphinContextMenu();
* to the predecessor.
*/
QList<QAction*> insertOpenWithItems(KMenu* popup,
- Q3ValueVector<KService::Ptr>& openWithVector);
+ QVector<KService::Ptr>& openWithVector);
/**
* Inserts the 'Actions...' submenu to \a popup.
* services.
*/
QList<QAction*> insertActionItems(KMenu* popup,
- Q3ValueVector<KDEDesktopMimeType::Service>& actionsVector);
+ QVector<KDEDesktopMimeType::Service>& actionsVector);
/**
* Returns true, if 'menu' contains already
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;
struct Entry {
int type;