mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
Remove all warnings on compile time
svn path=/trunk/KDE/kdebase/apps/; revision=1103376
This commit is contained in:
parent
c55ac46003
commit
a80da4153a
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue