akonadi
agenttypewidget.cpp
44 virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
81 void AgentTypeWidget::Private::currentAgentTypeChanged(const QModelIndex ¤tIndex, const QModelIndex &previousIndex)
115 d->mView->selectionModel()->setCurrentIndex(d->mView->model()->index(0, 0), QItemSelectionModel::Select);
157 void AgentTypeWidgetDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
212 painter->drawText(option.rect.x() + 5 + wp + 5, option.rect.y() + 7, wn, hn, Qt::AlignLeft, name);
217 painter->drawText(option.rect.x() + 5 + wp + 5, option.rect.y() + 7 + hn, wc, hc, Qt::AlignLeft, comment);
225 QSize AgentTypeWidgetDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
259 void AgentTypeWidgetDelegate::drawFocus(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect) const
QLayout * layout() const
void activated()
This signal is emitted whenever the user activates an agent.
int width() const
void setRenderHint(RenderHint hint, bool on)
QModelIndex currentIndex() const
const QFont & font() const
T value() const
int height() const
Qt::ItemFlags flags() const
bool isValid() const
QRect boundingRect(QChar ch) const
void setFont(const QFont &font)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void setPen(const QColor &color)
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
bool isEmpty() const
void currentChanged(const Akonadi::AgentType ¤t, const Akonadi::AgentType &previous)
This signal is emitted whenever the current agent type changes.
A description of the agent type.
Definition: agenttypemodel.h:61
void drawText(const QPointF &position, const QString &text)
virtual QVariant data(const QModelIndex &index, int role) const =0
void setMargin(int margin)
AgentFilterProxyModel * agentFilterProxyModel() const
Returns the agent filter proxy model, use this to filter by agent mimetype or capabilities.
Definition: agenttypewidget.cpp:143
int width() const
const QAbstractItemModel * model() const
QVariant data(int role) const
QStyle * style()
QFontMetrics fontMetrics() const
A proxy model for filtering AgentType or AgentInstance.
Definition: agentfilterproxymodel.h:52
AgentType currentAgentType() const
Returns the current agent type or an invalid agent type if no agent type is selected.
Definition: agenttypewidget.cpp:128
virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const =0
bool isValid() const
Type type() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
AgentTypeWidget(QWidget *parent=0)
Creates a new agent type widget.
Definition: agenttypewidget.cpp:96
const QPen & pen() const
QString toString() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.