]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/versioncontrol/versioncontrolobserver.h
Respect Shift- and Control-key for the rubberband selection
[dolphin.git] / src / views / versioncontrol / versioncontrolobserver.h
index eb1e745801f85bb192867000e05ade273148c25b..71405fabdd7848a6429468a09bdadf88a91e93fe 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2009 by Peter Penz <peter.penz@gmx.at>                  *
+ *   Copyright (C) 2009 by Peter Penz <peter.penz19@gmail.com>             *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
@@ -22,7 +22,7 @@
 
 #include <libdolphin_export.h>
 
-#include <kfileitem.h>
+#include <KFileItem>
 #include <kversioncontrolplugin.h>
 #include <QList>
 #include <QMutex>
@@ -51,12 +51,12 @@ class LIBDOLPHINPRIVATE_EXPORT VersionControlObserver : public QObject
     Q_OBJECT
 
 public:
-    VersionControlObserver(QAbstractItemView* view);
+    VersionControlObserver(QWidget* parent);
     virtual ~VersionControlObserver();
 
     QList<QAction*> contextMenuActions(const KFileItemList& items) const;
     QList<QAction*> contextMenuActions(const QString& directory) const;
-    
+
 signals:
     /**
      * Is emitted if an information message with the content \a msg
@@ -75,7 +75,7 @@ signals:
      * should be shown.
      */
     void operationCompletedMessage(const QString& msg);
-    
+
 private slots:
     /**
      * Invokes verifyDirectory() with a small delay. If delayedDirectoryVerification()
@@ -90,7 +90,7 @@ private slots:
      * delayedDirectoryVerification() it and assures that the verification of
      * the directory is done silently without information messages.
      */
-    void silentDirectoryVerification();    
+    void silentDirectoryVerification();
 
     void verifyDirectory();
 
@@ -99,7 +99,7 @@ private slots:
      * and applys the item states.
      */
     void slotThreadFinished();
-    
+
 private:
     struct ItemState
     {
@@ -132,11 +132,11 @@ private:
     bool m_versionedDirectory;
     bool m_silentUpdate; // if true, no messages will be send during the update
                          // of version states
-    
-    QAbstractItemView* m_view;
-    KDirLister* m_dirLister;
-    DolphinModel* m_dolphinModel;
-    
+
+    QWidget* m_view;
+    //KDirLister* m_dirLister;
+    //DolphinModel* m_dolphinModel;
+
     QTimer* m_dirVerificationTimer;
 
     KVersionControlPlugin* m_plugin;