KDEUI
kcategorydrawer.cpp
Go to the documentation of this file.
69 const QString category = index.model()->data(index, KCategorizedSortFilterProxyModel::CategoryDisplayRole).toString();
260 void KCategoryDrawerV3::mouseButtonPressed(const QModelIndex&, const QRect&, QMouseEvent *event)
265 void KCategoryDrawerV3::mouseButtonReleased(const QModelIndex&, const QRect&, QMouseEvent *event)
275 void KCategoryDrawerV3::mouseButtonDoubleClicked(const QModelIndex&, const QRect&, QMouseEvent *event)
int & rx()
int & ry()
QPoint topRight() const
void fillRect(const QRectF &rectangle, const QBrush &brush)
void setRenderHint(RenderHint hint, bool on)
int right() const
KCategoryDrawerV3(KCategorizedView *view)
Definition: kcategorydrawer.cpp:244
void setColorAt(qreal position, const QColor &color)
KCategoryDrawerV2(QObject *parent=0)
Definition: kcategorydrawer.cpp:199
void save()
virtual void mouseButtonReleased(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
Method called when the mouse button has been released.
Definition: kcategorydrawer.cpp:265
virtual void drawCategory(const QModelIndex &index, int sortRole, const QStyleOption &option, QPainter *painter) const
This method purpose is to draw a category represented by the given.
Definition: kcategorydrawer.cpp:62
virtual void mouseMoved(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
Method called when the mouse has been moved.
Definition: kcategorydrawer.cpp:270
virtual void mouseLeft(const QModelIndex &index, const QRect &blockRect)
Method called when the mouse button has left this block.
Definition: kcategorydrawer.cpp:280
void setBold(bool enable)
Definition: kcategorydrawer.h:43
void setFont(const QFont &font)
QFont font()
void translate(qreal dx, qreal dy)
Item view for listing items in a categorized fashion optionally.
Definition: kcategorizedview.h:79
void drawArc(const QRectF &rectangle, int startAngle, int spanAngle)
int top() const
void setPen(const QColor &color)
void setTop(int y)
virtual void mouseButtonDoubleClicked(const QModelIndex &index, QMouseEvent *event)
Definition: kcategorydrawer.cpp:224
int left() const
KCategoryDrawer & operator=(const KCategoryDrawer &cd)
Definition: kcategorydrawer.cpp:192
virtual ~KCategoryDrawerV2()
Definition: kcategorydrawer.cpp:205
virtual void mouseButtonMoved(const QModelIndex &index, QMouseEvent *event)
Definition: kcategorydrawer.cpp:219
void drawText(const QPointF &position, const QString &text)
virtual void mouseButtonDoubleClicked(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
Method called when the mouse button has been double clicked.
Definition: kcategorydrawer.cpp:275
virtual QVariant data(const QModelIndex &index, int role) const =0
void restore()
void setRight(int x)
int width() const
const QAbstractItemModel * model() const
Definition: kcategorydrawer.h:113
virtual ~KCategoryDrawerV3()
Definition: kcategorydrawer.cpp:250
void setHeight(int height)
virtual int categoryHeight(const QModelIndex &index, const QStyleOption &option) const
Definition: kcategorydrawer.cpp:158
virtual void mouseButtonPressed(const QModelIndex &index, QMouseEvent *event)
Definition: kcategorydrawer.cpp:209
int height() const
QPoint topLeft() const
qreal & rx()
void setAlphaF(qreal alpha)
void setRightMargin(int rightMargin)
Definition: kcategorydrawer.cpp:187
This role is used for asking the category to a given index.
Definition: kcategorizedsortfilterproxymodel.h:52
QString toString() const
void setLeft(int x)
virtual void mouseButtonPressed(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
Method called when the mouse button has been pressed.
Definition: kcategorydrawer.cpp:260
virtual void mouseButtonReleased(const QModelIndex &index, QMouseEvent *event)
Definition: kcategorydrawer.cpp:214
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:58 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:23:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.