]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphincontextmenu.h
use "Sort by" instead of "Sort By"
[dolphin.git] / src / dolphincontextmenu.h
index 17c9802154332bb1c27ed18fead69aa180594bcf..e6bfb9c285869c77067e915d6ae74a5e8750ddea 100644 (file)
@@ -25,9 +25,9 @@
 #include <kservice.h>
 #include <kurl.h>
 
-#include <QObject>
-#include <QString>
-#include <QVector>
+#include <QtCore/QObject>
+
+#include <QtCore/QVector>
 
 class KMenu;
 class KFileItem;
@@ -59,15 +59,14 @@ public:
      *                is above the viewport.
      * @baseUrl       Base URL of the viewport where the context menu
      *                should be opened.
-     * @viewType      On which view type is the context menu shown.
      */
     DolphinContextMenu(DolphinMainWindow* parent,
-                       KFileItem* fileInfo,
+                       const KFileItem& fileInfo,
                        const KUrl& baseUrl);
 
     virtual ~DolphinContextMenu();
 
-    /** Opens the context menu modal. */
+    /** Opens the context menu model. */
     void open();
 
 private:
@@ -127,9 +126,9 @@ private:
     };
 
     DolphinMainWindow* m_mainWindow;
-    KFileItem* m_fileInfo;
+    KFileItem m_fileInfo;
     KUrl m_baseUrl;
-    KFileItemList m_selectedItems;
+    QList<KFileItem> m_selectedItems;
     KUrl::List m_selectedUrls;
     int m_context;
 };