┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincategorydrawer.h
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2010-03-15 10:08:32 +0000
committerRafael Fernández López <[email protected]>2010-03-15 10:08:32 +0000
commit7eeb8dba6aeba09aa3dfa7fa5f0b00840d4d8317 (patch)
tree2c89332b2bc41efae6ac42350ea78aa45a00a03f /src/dolphincategorydrawer.h
parentfa24cc8e115e785cc02d0d3d3bf0c1574c783f63 (diff)
Get back names, and use "using" keyword to keep GCC silent on "method foo on base class hidden y method foo on derived class". Thanks to André for pointing out this trick.
CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=1103527
Diffstat (limited to 'src/dolphincategorydrawer.h')
-rw-r--r--src/dolphincategorydrawer.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/dolphincategorydrawer.h b/src/dolphincategorydrawer.h
index 38b0b33b2..d9849727e 100644
--- a/src/dolphincategorydrawer.h
+++ b/src/dolphincategorydrawer.h
@@ -31,6 +31,9 @@ class LIBDOLPHINPRIVATE_EXPORT DolphinCategoryDrawer
: public KCategoryDrawerV3
{
public:
+ using KCategoryDrawerV2::mouseButtonPressed;
+ using KCategoryDrawerV2::mouseButtonReleased;
+
enum Action {
SelectAll = 0,
UnselectAll
@@ -49,19 +52,10 @@ public:
virtual int categoryHeight(const QModelIndex &index, const QStyleOption &option) const;
- /**
- * @warning You explicitly have to determine whether the event has been accepted or not. You
- * have to call event->accept() or event->ignore() at all possible case branches in
- * your code.
- */
- virtual void buttonPressed(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
+protected:
+ virtual void mouseButtonPressed(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
- /**
- * @warning You explicitly have to determine whether the event has been accepted or not. You
- * have to call event->accept() or event->ignore() at all possible case branches in
- * your code.
- */
- virtual void buttonReleased(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
+ virtual void mouseButtonReleased(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
virtual void mouseMoved(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);