]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Remove all warnings on compile time
authorRafael Fernández López <ereslibre@kde.org>
Sun, 14 Mar 2010 22:57:42 +0000 (22:57 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Sun, 14 Mar 2010 22:57:42 +0000 (22:57 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1103376

src/dolphincategorydrawer.cpp
src/dolphincategorydrawer.h

index cb324f0ba47808d62801eb1065f991c68ce2c90c..303edf174950ac0d8ca9e214a4ea7e5b6fe97abb 100644 (file)
@@ -260,7 +260,7 @@ void DolphinCategoryDrawer::drawCategory(const QModelIndex &index, int sortRole,
     //BEGIN: category information
 }
 
     //BEGIN: category information
 }
 
-int DolphinCategoryDrawer::categoryHeight(const QModelIndex &index, const QStyleOption &option) const
+int DolphinCategoryDrawer::categoryHeight(const QModelIndex &index, const QStyleOption &) const
 {
     int iconSize = KIconLoader::global()->currentSize(KIconLoader::Small);
     QFont font(QApplication::font());
 {
     int iconSize = KIconLoader::global()->currentSize(KIconLoader::Small);
     QFont font(QApplication::font());
@@ -286,7 +286,7 @@ int DolphinCategoryDrawer::categoryHeight(const QModelIndex &index, const QStyle
     return heightWithoutIcon + 5;
 }
 
     return heightWithoutIcon + 5;
 }
 
-void DolphinCategoryDrawer::mouseButtonPressed(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
+void DolphinCategoryDrawer::buttonPressed(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
 {
     if (!index.isValid()) {
         event->ignore();
 {
     if (!index.isValid()) {
         event->ignore();
@@ -319,7 +319,7 @@ void DolphinCategoryDrawer::mouseButtonPressed(const QModelIndex &index, const Q
     event->ignore();
 }
 
     event->ignore();
 }
 
-void DolphinCategoryDrawer::mouseButtonReleased(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
+void DolphinCategoryDrawer::buttonReleased(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
 {
     if (!index.isValid() || hotSpotPressed == NoneHotSpot || categoryPressed != index) {
         event->ignore();
 {
     if (!index.isValid() || hotSpotPressed == NoneHotSpot || categoryPressed != index) {
         event->ignore();
@@ -361,7 +361,7 @@ void DolphinCategoryDrawer::mouseButtonReleased(const QModelIndex &index, const
     event->ignore();
 }
 
     event->ignore();
 }
 
-void DolphinCategoryDrawer::mouseMoved(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event)
+void DolphinCategoryDrawer::mouseMoved(const QModelIndex &index, const QRect &, QMouseEvent *event)
 {
     event->ignore();
     if (!index.isValid()) {
 {
     event->ignore();
     if (!index.isValid()) {
@@ -371,7 +371,7 @@ void DolphinCategoryDrawer::mouseMoved(const QModelIndex &index, const QRect &bl
     category = index.model()->data(index, KCategorizedSortFilterProxyModel::CategoryDisplayRole).toString();
 }
 
     category = index.model()->data(index, KCategorizedSortFilterProxyModel::CategoryDisplayRole).toString();
 }
 
-void DolphinCategoryDrawer::mouseLeft(const QModelIndex &index, const QRect &blockRect)
+void DolphinCategoryDrawer::mouseLeft(const QModelIndex &, const QRect &)
 {
     pos = QPoint();
     category = QString();
 {
     pos = QPoint();
     category = QString();
index e5ba041f392645f51966e61aa6a287417cf6493f..38b0b33b2be759ce808bebccfb4bc03b47538abb 100644 (file)
@@ -54,14 +54,14 @@ public:
       *          have to call event->accept() or event->ignore() at all possible case branches in
       *          your code.
       */
       *          have to call event->accept() or event->ignore() at all possible case branches in
       *          your code.
       */
-    virtual void mouseButtonPressed(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
+    virtual void buttonPressed(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.
       */
 
     /**
       * @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 mouseButtonReleased(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
+    virtual void buttonReleased(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
 
     virtual void mouseMoved(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
 
 
     virtual void mouseMoved(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);