summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-10-11 10:21:04 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-10-11 10:21:04 -0300
commit1b9a4f2bf8e9de9144133a435f3470fd77975945 (patch)
tree74aa1d0972296d3d7f7b327fbabd523d91cb8aeb /qt-ui/divelistview.cpp
parent9ed933d033889ac841c5f38afcdd40fa588a8cb9 (diff)
downloadsubsurface-1b9a4f2bf8e9de9144133a435f3470fd77975945.tar.gz
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>
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r--qt-ui/divelistview.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index 6ed77fb19..886d103c6 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -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();