Remove all warnings on compile time

svn path=/trunk/KDE/kdebase/apps/; revision=1103376
This commit is contained in:
Rafael Fernández López 2010-03-14 22:57:42 +00:00
parent c55ac46003
commit a80da4153a
2 changed files with 7 additions and 7 deletions

View file

@ -260,7 +260,7 @@ void DolphinCategoryDrawer::drawCategory(const QModelIndex &index, int sortRole,
//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());
@ -286,7 +286,7 @@ int DolphinCategoryDrawer::categoryHeight(const QModelIndex &index, const QStyle
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();
@ -319,7 +319,7 @@ void DolphinCategoryDrawer::mouseButtonPressed(const QModelIndex &index, const Q
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();
@ -361,7 +361,7 @@ void DolphinCategoryDrawer::mouseButtonReleased(const QModelIndex &index, const
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()) {
@ -371,7 +371,7 @@ void DolphinCategoryDrawer::mouseMoved(const QModelIndex &index, const QRect &bl
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();

View file

@ -54,14 +54,14 @@ public:
* 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.
*/
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);