X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/050992c5641e2de3d98df78ecfe91e9a5504c4cf..2f0ceedae088158b8af24a5e94500a7d1c0edecb:/src/views/versioncontrol/versioncontrolobserver.h diff --git a/src/views/versioncontrol/versioncontrolobserver.h b/src/views/versioncontrol/versioncontrolobserver.h index eb1e74580..71405fabd 100644 --- a/src/views/versioncontrol/versioncontrolobserver.h +++ b/src/views/versioncontrol/versioncontrolobserver.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009 by Peter Penz * + * Copyright (C) 2009 by Peter Penz * * * * 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 -#include +#include #include #include #include @@ -51,12 +51,12 @@ class LIBDOLPHINPRIVATE_EXPORT VersionControlObserver : public QObject Q_OBJECT public: - VersionControlObserver(QAbstractItemView* view); + VersionControlObserver(QWidget* parent); virtual ~VersionControlObserver(); QList contextMenuActions(const KFileItemList& items) const; QList 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;