diff options
| author | Peter Penz <[email protected]> | 2009-06-20 15:45:18 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-06-20 15:45:18 +0000 |
| commit | 5e73577d6c3520fa3dfd63646795e628cf2a0614 (patch) | |
| tree | bca7b798a6bd0936e9fff6f2c5fc848edaaa1724 /src/tooltips/ktooltip.h | |
| parent | 514566db88e51ba39695b083f3257c6c9d7356b4 (diff) | |
Tooltip interface cleanup: Don't use const-pointers as parameters if the implementation cannot handle 0-pointers. Use a const-reference instead.
svn path=/trunk/KDE/kdebase/apps/; revision=984342
Diffstat (limited to 'src/tooltips/ktooltip.h')
| -rw-r--r-- | src/tooltips/ktooltip.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/tooltips/ktooltip.h b/src/tooltips/ktooltip.h index d59f1bf17..31589c690 100644 --- a/src/tooltips/ktooltip.h +++ b/src/tooltips/ktooltip.h @@ -114,15 +114,16 @@ public: KToolTipDelegate(); virtual ~KToolTipDelegate(); - virtual QSize sizeHint(const KStyleOptionToolTip *option, const KToolTipItem *item) const; + virtual QSize sizeHint(const KStyleOptionToolTip &option, const KToolTipItem &item) const; /** * If haveAlphaChannel() returns true, the paint device will be filled with * Qt::transparent when this function is called, otherwise the content is * undefined. */ - virtual void paint(QPainter *painter, const KStyleOptionToolTip *option, - const KToolTipItem *item) const; + virtual void paint(QPainter *painter, + const KStyleOptionToolTip &option, + const KToolTipItem &item) const; /** * Reimplement this function to specify the region of the tooltip @@ -135,7 +136,7 @@ public: * This function will only be called if haveAlphaChannel() * returns true. */ - virtual QRegion inputShape(const KStyleOptionToolTip *option) const; + virtual QRegion inputShape(const KStyleOptionToolTip &option) const; /** * Reimplement this function to specify a shape mask for the tooltip. @@ -146,7 +147,7 @@ public: * This function will only be called if haveAlphaChannel() * returns false. */ - virtual QRegion shapeMask(const KStyleOptionToolTip *option) const; + virtual QRegion shapeMask(const KStyleOptionToolTip &option) const; protected: /** |
