forked from qt-creator/qt-creator
VCS[vcs,p4,svn,hg]: Use VCManager for delete operations.
...and its dialog prompt consistently. Rename method and introduce overload taking IVersionControl. Add convenience slot to VCSBasePlugin.
This commit is contained in:
@@ -149,6 +149,11 @@ public:
|
||||
const VCSBasePluginState ¤tState() const;
|
||||
Core::IVersionControl *versionControl() const;
|
||||
|
||||
public slots:
|
||||
// Convenience slot for "Delete current file" action. Prompts to
|
||||
// delete the file via VCSManager.
|
||||
void promptToDeleteCurrentFile();
|
||||
|
||||
protected:
|
||||
enum ActionState { NoVCSEnabled, OtherVCSEnabled, VCSEnabled };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user