kdevplatform/vcs
vcseventmodel.cpp
Go to the documentation of this file.
74 if( idx.row() < 0 || idx.row() >= rowCount() || idx.column() < 0 || idx.column() >= columnCount() )
79 {
95 QVariant VcsBasicEventModel::headerData(int section, Qt::Orientation orientation, int role) const
97 if( section < 0 || section >= columnCount() || orientation != Qt::Horizontal || role != Qt::DisplayRole )
132 {
148 VcsEventLogModel::VcsEventLogModel(KDevelop::IBasicVersionControl* iface, const VcsRevision& rev, const QUrl& url, QObject* parent)
180 ICore::self()->runController()->registerJob( job );
QString section(QChar sep, int start, int end, QFlags< QString::SectionFlag > flags) const
void fetchMore(const QModelIndex &parent) override
Adds events to the model via.
Definition: vcseventmodel.cpp:187
int count(const T &value) const
int column() const
This is the basic interface that all Version Control or Source Code Management plugins need to implem...
Definition: ibasicversioncontrol.h:52
Encapsulates a vcs revision number, date or range of revisions.
Definition: vcsrevision.h:66
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void beginInsertRows(const QModelIndex &parent, int first, int last)
void destroyed(QObject *obj)
QVariant headerData(int, Qt::Orientation, int role=Qt::DisplayRole) const override
Definition: vcseventmodel.cpp:112
KDevelop::VcsEvent eventForIndex(const QModelIndex &) const
Definition: vcseventmodel.cpp:144
Small container class that contains information about a single revision.
Definition: vcsevent.h:96
QVariant data(const QModelIndex &, int role=Qt::DisplayRole) const override
Definition: vcseventmodel.cpp:84
~VcsBasicEventModel() override
void removeFirst()
bool isEmpty() const
void endInsertRows()
bool isValid() const
T & last()
bool canFetchMore(const QModelIndex &parent) const override
Definition: vcseventmodel.cpp:180
int row() const
VcsBasicEventModel(QObject *parent)
Definition: vcseventmodel.cpp:64
void addEvents(const QList< KDevelop::VcsEvent > &)
Definition: vcseventmodel.cpp:132
This class provides an extension of KJob to get various VCS-specific information about the job.
Definition: vcsjob.h:43
~VcsEventLogModel() override
VcsEventLogModel(KDevelop::IBasicVersionControl *iface, const KDevelop::VcsRevision &rev, const QUrl &url, QObject *parent)
Definition: vcseventmodel.cpp:165
Definition: dvcsevent.h:33
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Definition: vcseventmodel.cpp:79
This is a generic model to store a list of VcsEvents.
Definition: vcseventmodel.h:44
This model stores a list of VcsEvents corresponding to the log obtained via IBasicVersionControl::log...
Definition: vcseventmodel.h:77
QObject * parent() const
T value(int i) const
int rowCount(const QModelIndex &=QModelIndex()) const override
Definition: vcseventmodel.cpp:72
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Mar 8 2021 23:30:50 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Mar 8 2021 23:30:50 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.