summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-01-15 09:30:42 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-15 15:52:31 +0700
commit7e9582631d97fc35522344eda417c02c25ea12db (patch)
tree5b8172298be3508f7c6b6f4e80ad24d3c7a7400c /qt-ui/divelistview.cpp
parent795443766597e512504b4d4599d26131c83bff1d (diff)
downloadsubsurface-7e9582631d97fc35522344eda417c02c25ea12db.tar.gz
Convert to TRUE/FALSE to stdbools true/false
I had problems with this one on Qt5. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r--qt-ui/divelistview.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index 607f8783c..1b01a1cf7 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -534,7 +534,7 @@ void DiveListView::merge_trip(const QModelIndex &a, int offset)
reload(currentLayout, false);
fixMessyQtModelBehaviour();
restoreSelection();
- mark_divelist_changed(TRUE);
+ mark_divelist_changed(true);
}
void DiveListView::mergeTripAbove()
@@ -553,13 +553,13 @@ void DiveListView::removeFromTrip()
struct dive *d;
for_each_dive(i, d) {
if (d->selected)
- remove_dive_from_trip(d, FALSE);
+ remove_dive_from_trip(d, false);
}
rememberSelection();
reload(currentLayout, false);
fixMessyQtModelBehaviour();
restoreSelection();
- mark_divelist_changed(TRUE);
+ mark_divelist_changed(true);
}
void DiveListView::newTripAbove()
@@ -578,7 +578,7 @@ void DiveListView::newTripAbove()
trip->expanded = 1;
reload(currentLayout, false);
fixMessyQtModelBehaviour();
- mark_divelist_changed(TRUE);
+ mark_divelist_changed(true);
restoreSelection();
}
@@ -621,7 +621,7 @@ void DiveListView::addToTripAbove()
}
}
trip->expanded = 1;
- mark_divelist_changed(TRUE);
+ mark_divelist_changed(true);
reload(currentLayout, false);
restoreSelection();
fixMessyQtModelBehaviour();
@@ -642,9 +642,9 @@ void DiveListView::markDiveInvalid()
if (amount_selected == 0) {
mainWindow()->cleanUpEmpty();
}
- mark_divelist_changed(TRUE);
+ mark_divelist_changed(true);
mainWindow()->refreshDisplay();
- if(prefs.display_invalid_dives == FALSE) {
+ if(prefs.display_invalid_dives == false) {
clearSelection();
// select top dive that isn't marked invalid
rememberSelection();
@@ -673,7 +673,7 @@ void DiveListView::deleteDive()
if (amount_selected == 0) {
mainWindow()->cleanUpEmpty();
}
- mark_divelist_changed(TRUE);
+ mark_divelist_changed(true);
mainWindow()->refreshDisplay();
if(lastDiveNr != -1){
clearSelection();
@@ -771,7 +771,7 @@ void DiveListView::saveSelectedDivesAs()
settings.endGroup();
QByteArray bt = QFile::encodeName(fileName);
- save_dives_logic(bt.data(), TRUE);
+ save_dives_logic(bt.data(), true);
}
void DiveListView::exportSelectedDivesAsUDDF()