GroupingDesktop
groupicon.cpp
Go to the documentation of this file.
100 (event->pos() - event->buttonDownPos(Qt::LeftButton)).toPoint().manhattanLength() > QApplication::startDragDistance()) {
143 void GroupIcon::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
154 QRect iconRect(rect.x() + qMax(0, (width / 2) - (m_iconHeight / 2)), textRect.bottom() + 2, m_iconHeight, m_iconHeight);
virtual void updateGeometry()
void setMimeData(QMimeData *data)
virtual void getContentsMargins(qreal *left, qreal *top, qreal *right, qreal *bottom) const
qreal x() const
qreal y() const
void setPixmap(const QPixmap &pixmap)
virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint) const
void setAcceptHoverEvents(bool enabled)
void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Definition: groupicon.cpp:92
void resizeEvent(QGraphicsSceneResizeEvent *event)
Definition: groupicon.cpp:62
QWidget * widget() const
QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint) const
Definition: groupicon.cpp:70
void update(const QRectF &rect)
void setContentsMargins(qreal left, qreal top, qreal right, qreal bottom)
QSizeF size() const
void setCursor(const QCursor &cursor)
Qt::DropAction exec(QFlags< Qt::DropAction > supportedActions)
static GroupInfo groupInfo(const QString &name)
Definition: abstractgroup.cpp:855
QFont font() const
QColor color() const
QRect boundingRect(QChar ch) const
void setFont(const QFont &font)
QCursor cursor() const
QRgb rgb() const
void setPen(const QColor &color)
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
bool isEmpty() const
bool isEmpty() const
void hoverEnter(GroupIcon *icon)
void drawText(const QPointF &position, const QString &text)
Qt::MouseButton button() const
void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: groupicon.cpp:129
GraphicsItemFlags flags() const
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition: groupicon.cpp:97
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Definition: groupicon.cpp:121
int width(const QString &text, int len) const
QVariant data(int key) const
qreal width() const
void setCacheMode(CacheMode mode, const QSize &logicalCacheSize)
QRectF rect() const
int height() const
virtual QStringList formats() const
qreal height() const
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: groupicon.cpp:143
QRectF contentsRect() const
void setData(const QString &mimeType, const QByteArray &data)
Definition: groupinfo.h:30
const QPen & pen() const
QByteArray toAscii() const
int startDragDistance()
Qt::CursorShape shape() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:57 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:42:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.