From 7e9582631d97fc35522344eda417c02c25ea12db Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 15 Jan 2014 09:30:42 +0100 Subject: Convert to TRUE/FALSE to stdbools true/false I had problems with this one on Qt5. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'qt-ui/divelistview.cpp') 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() -- cgit v1.2.3-70-g09d2