Good deal of whitespace fixes and code cleanup.

I just went thru all of subsurface code removing
some whitespaces issues and trying to make the
code prettyer, I also removed a few QString issues.d

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-10-11 10:21:04 -03:00
parent 9ed933d033
commit 1b9a4f2bf8
11 changed files with 50 additions and 131 deletions

View file

@ -52,9 +52,8 @@ void DiveListView::fixMessyQtModelBehaviour()
{
QAbstractItemModel *m = model();
for(int i = 0; i < model()->rowCount(); i++){
if (m->rowCount( m->index(i, 0) ) != 0){
if (m->rowCount( m->index(i, 0) ) != 0)
setFirstColumnSpanned(i, QModelIndex(), true);
}
}
}
@ -88,13 +87,11 @@ void DiveListView::showSearchEdit()
bool DiveListView::eventFilter(QObject* , QEvent* event)
{
if(event->type() != QEvent::KeyPress){
if(event->type() != QEvent::KeyPress)
return false;
}
QKeyEvent *keyEv = static_cast<QKeyEvent*>(event);
if (keyEv->key() != Qt::Key_Escape){
if (keyEv->key() != Qt::Key_Escape)
return false;
}
searchBox->clear();
searchBox->hide();