kdevelop/kdevplatform/vcs
Go to the documentation of this file.
22 #ifndef KDEVPLATFORM_BRANCHESLISTMODEL_H
23 #define KDEVPLATFORM_BRANCHESLISTMODEL_H
25 #include <QStandardItemModel>
28 #include <vcs/vcsexport.h>
31 class IBranchingVersionControl;
33 class BranchesListModelPrivate;
38 Q_PROPERTY(KDevelop::IProject* project READ project WRITE setProject)
39 Q_PROPERTY(
QString currentBranch READ currentBranch WRITE setCurrentBranch NOTIFY currentBranchChanged)
41 enum
Roles { CurrentRole = Qt::UserRole+1 };
50 Q_INVOKABLE
void createBranch(
const QString& baseBranch,
const QString& newBranch);
51 Q_INVOKABLE
void removeBranch(
const QString& branch);
53 QUrl repository()
const;
57 void setCurrentBranch(
const QString& branch);
59 KDevelop::IProject* project()
const;
60 void setProject(KDevelop::IProject* p);
66 void currentBranchChanged();
75 #endif // KDEVPLATFORM_BRANCHESLISTMODEL_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Dec 5 2019 05:01:58 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.