From 17bba1cffcfc6e0e4c795979f4fa4b76a71362d0 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 14 Apr 2008 21:07:25 +0000 Subject: [PATCH] SVN_SILENT: tabs are not cool. tell your friends. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797074 --- applet.h | 59 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 32 insertions(+), 27 deletions(-) diff --git a/applet.h b/applet.h index 5938996b4..8a23bf923 100644 --- a/applet.h +++ b/applet.h @@ -192,33 +192,33 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget **/ const Package* package() const; - /** - * Returns the view this widget is visible on - */ - QGraphicsView *view() const; - - /** - * Maps a QRect from a view's coordinates to local coordinates. - * @param view the view from which rect should be mapped - * @param rect the rect to be mapped - */ - QRectF mapFromView(const QGraphicsView *view, const QRect &rect) const; - - /** - * Maps a QRectF from local coordinates to a view's coordinates. - * @param view the view to which rect should be mapped - * @param rect the rect to be mapped - */ - QRect mapToView(const QGraphicsView *view, const QRectF &rect) const; - - /** - * Recomended position for a popup window like a menu or a tooltip - * given its size - * @param s size of the popup - * @returns recomended position - */ - QPoint popupPosition(const QSize &s) const; - + /** + * Returns the view this widget is visible on + */ + QGraphicsView *view() const; + + /** + * Maps a QRect from a view's coordinates to local coordinates. + * @param view the view from which rect should be mapped + * @param rect the rect to be mapped + */ + QRectF mapFromView(const QGraphicsView *view, const QRect &rect) const; + + /** + * Maps a QRectF from local coordinates to a view's coordinates. + * @param view the view to which rect should be mapped + * @param rect the rect to be mapped + */ + QRect mapToView(const QGraphicsView *view, const QRectF &rect) const; + + /** + * Recomended position for a popup window like a menu or a tooltip + * given its size + * @param s size of the popup + * @returns recomended position + */ + QPoint popupPosition(const QSize &s) const; + /** * Called when any of the geometry constraints have been updated. * This method calls constraintsUpdated, which may be reimplemented, @@ -717,6 +717,11 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget */ void mouseMoveEvent(QGraphicsSceneMouseEvent *event); + /** + * Reimplemented from QGraphicsItem + */ + void focusInEvent(QFocusEvent * event); + /** * Reimpmlemented from LayoutItem */