Less warnings please
svn path=/trunk/KDE/kdebase/workspace/; revision=1042345
This commit is contained in:
parent
f538de9b1d
commit
4591f8bacd
1 changed files with 6 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue