summaryrefslogtreecommitdiffstats
path: root/qt-ui/simplewidgets.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-02-19 11:34:54 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-19 07:13:56 -0800
commit43997d3b363034e452931494f6567ff959529b62 (patch)
treea56b2df3e1af3e577d2b8225c18aed1775bd9eee /qt-ui/simplewidgets.cpp
parent48c4c21b9fe76127b35265f90f73abb4fa782500 (diff)
downloadsubsurface-43997d3b363034e452931494f6567ff959529b62.tar.gz
Convert more TRUE/FALSE to stdbools true/false
In Qt5, Qt doesn't define TRUE/FALSE anymore, so we need to stick to stdbools to have Qt5 builds working. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r--qt-ui/simplewidgets.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp
index e73b23560..565df4901 100644
--- a/qt-ui/simplewidgets.cpp
+++ b/qt-ui/simplewidgets.cpp
@@ -186,7 +186,7 @@ void ShiftImageTimesDialog::syncCameraClicked()
return;
picture.load(fileNames.at(0));
- ui.displayDC->setEnabled(TRUE);
+ ui.displayDC->setEnabled(true);
QGraphicsScene *scene = new QGraphicsScene (this);
scene->addPixmap(picture.scaled(ui.DCImage->size()));
@@ -244,9 +244,9 @@ time_t ShiftImageTimesDialog::amount() const
void ShiftImageTimesDialog::setOffset(time_t offset)
{
if (offset >= 0) {
- ui.forward->setChecked(TRUE);
+ ui.forward->setChecked(true);
} else {
- ui.backwards->setChecked(TRUE);
+ ui.backwards->setChecked(true);
offset *= -1;
}
ui.timeEdit->setTime(QTime(offset / 3600, (offset % 3600) / 60, offset % 60));