Less warnings please

svn path=/trunk/KDE/kdebase/workspace/; revision=1042345
This commit is contained in:
Martin Gräßlin 2009-10-29 17:03:02 +00:00
parent f538de9b1d
commit 4591f8bacd

View file

@ -490,6 +490,8 @@ QModelIndex TabBoxHandler::nextPrev( bool forward ) const
case TabBoxConfig::DesktopTabBox:
model = d->desktopModel();
break;
default:
return d->index;
}
if( forward )
{
@ -594,6 +596,8 @@ QModelIndex TabBoxHandler::grabbedKeyEvent( QKeyEvent* event ) const
case TabBoxConfig::DesktopTabBox:
model = d->desktopModel();
break;
default:
return d->index;
}
int column = d->index.column();
int row = d->index.row();
@ -691,6 +695,8 @@ QModelIndex TabBoxHandler::first() const
case TabBoxConfig::DesktopTabBox:
model = d->desktopModel();
break;
default:
return QModelIndex();
}
return model->index( 0, 0 );
}