GroupingDesktop
freehandle.cpp
Go to the documentation of this file.
140 // if (applet() && (applet()->geometry() != m_originalGeom || applet()->transform() != m_originalTransform)) {
142 // } else if (group() && (group()->geometry() != m_originalGeom || group()->transform() != m_originalTransform)) {
196 void FreeHandle::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
301 if ((applet() && applet()->hasConfigurationInterface()) || (group() && group()->hasConfigurationInterface())) {
381 if ((applet() && applet()->hasConfigurationInterface()) || (group() && group()->hasConfigurationInterface())) {
432 if ((applet() && applet()->hasConfigurationInterface()) || (group() && group()->hasConfigurationInterface())) {
713 newSize = m_origWidgetSize + QPointF(rCursorPoint.x() - rGrabPoint.x(), rGrabPoint.y() - rCursorPoint.y());
715 newSize = m_origWidgetSize + QPointF(rGrabPoint.x() - rCursorPoint.x(), rGrabPoint.y() - rCursorPoint.y());
883 //kDebug() << "progress" << progress << "m_opacity" << m_opacity << m_anim << "(" << FadeIn << ")";
955 QPolygonF region = widget()->mapToParent(m_rect).intersected(widget()->parentWidget()->boundingRect());
962 QPolygonF region2 = widget()->mapToParent(m_rect).intersected(widget()->parentWidget()->boundingRect());
1029 //m_iconSize = iconLoader->currentSize(KIconLoader::Small); //does not work with double sized icon
QPointF mapToParent(const QPointF &point) const
void setInterval(int msec)
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: freehandle.cpp:196
QGraphicsWidget * parentWidget() const
QSize size() const
void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Definition: freehandle.cpp:826
void disappearDone(Handle *self)
Type type() const
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Definition: freehandle.cpp:846
int width() const
QRect toRect() const
FreeHandle(GroupingContainment *parent, Plasma::Applet *applet)
Definition: freehandle.cpp:58
void fillRect(const QRectF &rectangle, const QBrush &brush)
void setCompositionMode(CompositionMode mode)
void startFading(FadeType anim, const QPointF &hoverPos, bool preserveSide=false)
Definition: freehandle.cpp:925
QPointF lastScenePos() const
void reset()
void raise(QGraphicsWidget *widget)
Raises a widget above all the other Applets or Groups.
Definition: groupingcontainment.cpp:996
void fill(const QColor &color)
virtual void showConfigurationInterface()
Lets the user interact with the Group options.
Definition: abstractgroup.cpp:775
void hoverMoveEvent(QGraphicsSceneHoverEvent *event)
Definition: freehandle.cpp:841
void moveBy(qreal dx, qreal dy)
void closeSubpath()
QPointF _k_rotatePoint(const QPointF &point, qreal angle)
Definition: freehandle.cpp:611
void setColorAt(qreal position, const QColor &color)
QPoint map(const QPoint &point) const
QTransform sceneTransform() const
void setAcceptTouchEvents(bool enabled)
QPointF mapToScene(const QPoint &point) const
QSizeF size() const
bool isVisible() const
QRectF sceneBoundingRect() const
QPoint mapToGlobal(const QPoint &pos) const
QPoint screenPos() const
T value() const
void moveTo(const QPointF &point)
qreal top() const
T * data() const
Definition: handle.h:41
QPointF scenePos() const
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition: freehandle.cpp:625
QGraphicsScene * scene() const
Definition: handle.h:51
void setMovingWidget(QGraphicsWidget *widget)
Call this function when an Applet or a Group is being moved by the user.
Definition: groupingcontainment.cpp:969
qreal left() const
void setStartValue(const QVariant &value)
void update(const QRectF &rect)
QPainterPath FreeHandleRect(const QRectF &rect, int radius, bool onRight)
Definition: freehandle.cpp:167
void setHeight(qreal height)
virtual bool event(QEvent *e)
void resize(const QSizeF &size)
qreal bottom() const
Definition: handle.h:53
void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: freehandle.cpp:454
qreal zValue() const
QPointF pos() const
Definition: freehandle.h:50
QTransform & translate(qreal dx, qreal dy)
int count(const T &value) const
qreal x() const
qreal y() const
bool isEmpty() const
void translate(qreal dx, qreal dy)
void stop()
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
QVariant property(const char *name) const
QTransform & scale(qreal sx, qreal sy)
QPainterPath united(const QPainterPath &p) const
void setPen(const QColor &color)
void lineTo(const QPointF &endPoint)
Definition: handle.h:52
QSize toSize() const
void setPos(const QPointF &pos)
qreal m31() const
qreal m32() const
qreal m11() const
qreal m12() const
qreal m21() const
qreal m22() const
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
QPointF topLeft() const
void addRect(const QRectF &rectangle)
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
void switchContainment(GroupingContainment *containment, const QPointF &pos)
move our widget to another containment
Definition: handle.cpp:140
QPointF mapFromScene(const QPointF &point) const
QSizeF effectiveSizeHint(Qt::SizeHint which, const QSizeF &constraint) const
void moveLeft(qreal x)
QTransform & rotateRadians(qreal angle, Qt::Axis axis)
QPoint mapFromScene(const QPointF &point) const
QPointF center() const
Qt::MouseButton button() const
T & first()
QRectF united(const QRectF &rectangle) const
GraphicsItemFlags flags() const
maximumSize
void prepareGeometryChange()
QPointF scenePos() const
void moveCenter(const QPointF &position)
bool sceneEventFilter(QGraphicsItem *watched, QEvent *event)
Definition: freehandle.cpp:871
virtual bool sceneEvent(QEvent *event)
qreal right() const
Definition: handle.h:50
void stop()
void setRenderHints(QFlags< QPainter::RenderHint > hints, bool on)
QTransform & rotate(qreal angle, Qt::Axis axis)
The transformations of the applet are constrained by, e.g.
Definition: abstractgroup.h:56
Definition: handle.h:49
QRectF boundingRect() const
QPointF mapToScene(const QPointF &point) const
qreal width() const
void setAcceptsHoverEvents(bool enabled)
void setWidth(qreal width)
QTransform transform() const
QPoint mapFromGlobal(const QPoint &pos) const
void setFlags(QFlags< QGraphicsItem::GraphicsItemFlag > flags)
T & last()
void setTransform(const QTransform &matrix, bool combine)
virtual QPainterPath shape() const
QPointF bottomLeft() const
qreal & rx()
qreal & ry()
void setEndValue(const QVariant &value)
void translate(const QPointF &offset)
void setDuration(int msecs)
void installSceneEventFilter(QGraphicsItem *filterItem)
void start(int msec)
void setAlphaF(qreal alpha)
QRectF adjusted(qreal dx1, qreal dy1, qreal dx2, qreal dy2) const
qreal height() const
QGraphicsItem * parentItem() const
bool contains(const QPointF &point) const
Definition: handle.h:47
QRectF contentsRect() const
void destroy()
Destroy this Groups and its children, deleting the configurations too.
Definition: abstractgroup.cpp:476
void start(QAbstractAnimation::DeletionPolicy policy)
minimumSize
bool isUnderMouse() const
QPointF pos() const
qreal height() const
void quadTo(const QPointF &c, const QPointF &endPoint)
void moveTop(qreal y)
bool isActive() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void map(int x, int y, int *tx, int *ty) const
virtual bool contains(const QPointF &point) const
QRect rect() const
void setDirection(Direction direction)
void setZValue(qreal z)
geometry
void widgetMoved(QGraphicsWidget *widget)
virtual QRectF boundingRect() const
QPointF scenePos() const
void destroyed(QObject *obj)
qreal width() const
QWidgetList topLevelWidgets()
Definition: freehandle.h:51
Definition: handle.h:48
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Definition: freehandle.cpp:516
void setSingleShot(bool singleShot)
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.