forked from qt-creator/qt-creator
Vcs: Add "bulk delete" feature to API
... and use it to improve the user experience when removing several files at once from a project. Fixes: QTCREATORBUG-24385 Change-Id: I8e8c39ee9dc0046f1715a5143a7649fab06e5ad8 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "core_global.h"
|
||||
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/id.h>
|
||||
|
||||
#include <QString>
|
||||
@@ -69,10 +70,12 @@ public:
|
||||
|
||||
static QStringList repositories(const IVersionControl *);
|
||||
|
||||
// Shows a confirmation dialog, whether the file should also be deleted
|
||||
// from revision control. Calls vcsDelete on the file. Returns false
|
||||
// if a failure occurs
|
||||
static bool promptToDelete(const QString &fileName);
|
||||
// Shows a confirmation dialog, whether the files should also be deleted
|
||||
// from revision control. Calls vcsDelete on the files. Returns the list
|
||||
// of files that failed.
|
||||
static Utils::FilePaths promptToDelete(const Utils::FilePaths &filePaths);
|
||||
static Utils::FilePaths promptToDelete(IVersionControl *versionControl,
|
||||
const Utils::FilePaths &filePaths);
|
||||
static bool promptToDelete(IVersionControl *versionControl, const QString &fileName);
|
||||
|
||||
// Shows a confirmation dialog, whether the files in the list should be
|
||||
|
||||
Reference in New Issue
Block a user