kdevplatform/vcs
vcseventwidget.cpp
Go to the documentation of this file.
60 m_copyAction = new QAction(QIcon::fromTheme(QStringLiteral("edit-copy")), i18nc("@action:inmenu", "Copy Revision Id"), q);
92 auto diffToPreviousAction = menu.addAction(i18nc("@action:inmenu", "Diff to Previous Revision"));
120 QLatin1String("<tt>") + KTextToHTML::convertToHtml(ev.message(), markupOptions) + QLatin1String("</tt>");
143 KDevelop::VcsRevision prev = KDevelop::VcsRevision::createSpecialRevision(KDevelop::VcsRevision::Previous);
197 VcsEventWidget::VcsEventWidget( const QUrl& url, const VcsRevision& rev, KDevelop::IBasicVersionControl* iface, QWidget* parent )
215 header->setSectionResizeMode( 2, QHeaderView::ResizeToContents );
virtual void reject()
void setShortcut(const QKeySequence &key)
void customContextMenuRequested(const QPoint &pos)
void setStretchLastSection(bool stretch)
VcsEventWidget(const QUrl &url, const VcsRevision &rev, KDevelop::IBasicVersionControl *iface, QWidget *parent=nullptr)
Definition: vcseventwidget.cpp:215
QIcon fromTheme(const QString &name, const QIcon &fallback)
The type is not set, this is an invalid revision.
Definition: vcsrevision.h:82
This is the basic interface that all Version Control or Source Code Management plugins need to implem...
Definition: ibasicversioncontrol.h:52
~VcsEventWidget() override
Definition: vcseventwidget.cpp:264
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 addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
Definition: vcseventwidget.h:35
void destroyed(QObject *obj)
void deleteLater()
void anchorClicked(const QUrl &link)
Small container class that contains information about a single revision.
Definition: vcsevent.h:96
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
void currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous)
void accepted()
virtual void accept()
The version prior the other one (only valid in functions that take two revisions).
Definition: vcsrevision.h:90
bool isValid() const
void triggered(bool checked)
This class provides an extension of KJob to get various VCS-specific information about the job.
Definition: vcsjob.h:43
void rowsInserted(const QModelIndex &parent, int start, int end)
void rejected()
Definition: dvcsevent.h:33
static VcsRevision createSpecialRevision(KDevelop::VcsRevision::RevisionSpecialType type)
Helper function to create a vcs revision for one of the special types.
Definition: vcsrevision.cpp:49
void setDefault(bool)
void clicked(const QModelIndex &index)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 09:41:52 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 09:41:52 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.