Mercurial: Emit version control changed() signals correctly.

Add a QVariant cookie to HgTask to be emitted on successful
execution, wired to IVersionControl.
This commit is contained in:
Friedemann Kleint
2009-12-04 12:58:01 +01:00
parent f73c6e9b04
commit 5ec1c36c23
8 changed files with 93 additions and 26 deletions

View File

@@ -32,6 +32,10 @@
#include <coreplugin/iversioncontrol.h>
QT_BEGIN_NAMESPACE
class QVariant;
QT_END_NAMESPACE
namespace Mercurial {
namespace Internal {
@@ -56,6 +60,12 @@ public:
bool vcsDelete(const QString &filename);
bool sccManaged(const QString &filename);
public slots:
// To be connected to the HgTask's success signal to emit the repository/
// files changed signals according to the variant's type:
// String -> repository, StringList -> files
void changed(const QVariant&);
signals:
void enabledChanged(bool);