kdevelop/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() )
95 QVariant VcsBasicEventModel::headerData(int section, Qt::Orientation orientation, int role) const
97 if( section < 0 || section >= columnCount() || orientation != Qt::Horizontal || role != Qt::DisplayRole )
148 VcsEventLogModel::VcsEventLogModel(KDevelop::IBasicVersionControl* iface, const VcsRevision& rev, const QUrl& url, QObject* parent)
int rowCount(const QModelIndex &=QModelIndex()) const override
Definition: vcseventmodel.cpp:55
~VcsBasicEventModel() override
bool canFetchMore(const QModelIndex &parent) const override
Definition: vcseventmodel.cpp:163
~VcsEventLogModel() override
VcsBasicEventModel(QObject *parent)
Definition: vcseventmodel.cpp:47
void removeFirst()
VcsEventLogModel(KDevelop::IBasicVersionControl *iface, const KDevelop::VcsRevision &rev, const QUrl &url, QObject *parent)
Definition: vcseventmodel.cpp:148
T value(int i) const
KDevelop::VcsEvent eventForIndex(const QModelIndex &) const
Definition: vcseventmodel.cpp:127
bool isValid() const
int count(const T &value) const
QVariant data(const QModelIndex &, int role=Qt::DisplayRole) const override
Definition: vcseventmodel.cpp:67
void endInsertRows()
bool isEmpty() const
int row() const
void addEvents(const QList< KDevelop::VcsEvent > &)
Definition: vcseventmodel.cpp:115
This model stores a list of VcsEvents corresponding to the log obtained via IBasicVersionControl::log...
Definition: vcseventmodel.h:78
Definition: vcsannotationmodel.h:32
QVariant headerData(int, Qt::Orientation, int role=Qt::DisplayRole) const override
Definition: vcseventmodel.cpp:95
void beginInsertRows(const QModelIndex &parent, int first, int last)
This is a generic model to store a list of VcsEvents.
Definition: vcseventmodel.h:45
void fetchMore(const QModelIndex &parent) override
Adds events to the model via.
Definition: vcseventmodel.cpp:170
This class provides an extension of KJob to get various VCS-specific information about the job...
Definition: vcsjob.h:43
Encapsulates a vcs revision number, date or range of revisions.
Definition: vcsrevision.h:66
T & last()
This is the basic interface that all Version Control or Source Code Management plugins need to implem...
Definition: ibasicversioncontrol.h:52
int column() const
QString section(QChar sep, int start, int end, QFlags< QString::SectionFlag > flags) const
Small container class that contains information about a single revision.
Definition: vcsevent.h:92
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Definition: vcseventmodel.cpp:62
void destroyed(QObject *obj)
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Fri Dec 6 2019 04:52:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Fri Dec 6 2019 04:52:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.