From cd216b2eb85878b6c746e00fe7af4810869492bf Mon Sep 17 00:00:00 2001 From: Craig Duquette Date: Tue, 25 Dec 2007 05:34:43 +0000 Subject: [PATCH] make setToolTip() and toolTip() public from protected svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=752611 --- widgets/widget.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/widgets/widget.h b/widgets/widget.h index 9cf2c8b65..59c49ee0c 100644 --- a/widgets/widget.h +++ b/widgets/widget.h @@ -274,15 +274,6 @@ TODO: implement once we decide how to handle the font system */ QRect mapToView(const QGraphicsView *view, const QRectF &rect) const; -protected: - /** - * Paints the widget - * @param painter the QPainter to use to paint. - * @param option the style option used to give specific info on the item being dawn. - * @param widget the parent QWidget (most likely the Corona) - */ - virtual void paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); - /** * The Data from the tooltip * @returns A ToolTip::Data object with current information @@ -294,6 +285,16 @@ protected: * @param data a ToolTip::Data object containing icon and text */ void setToolTip( const ToolTipData &dt ); + +protected: + /** + * Paints the widget + * @param painter the QPainter to use to paint. + * @param option the style option used to give specific info on the item being dawn. + * @param widget the parent QWidget (most likely the Corona) + */ + virtual void paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); + /** * Reimplemented from QGraphicsItem */