Skip to content

Commit

Permalink
use Qt::endl
Browse files Browse the repository at this point in the history
  • Loading branch information
Karry committed Aug 12, 2024
1 parent aa6de20 commit 0c34fed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/CameraModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <TimeLapse/pipeline_write_frame.h>
#include <TimeLapse/pipeline_cpt_qcamera.h>


CameraModel::CameraModel(QObject *parent):
QAbstractListModel(parent)
{
Expand All @@ -37,10 +38,10 @@ CameraModel::CameraModel(QObject *parent):
if (devices.isEmpty()) {
verboseOutput << QCoreApplication::translate("main", "No compatible capture device found");
} else {
verboseOutput << "Found devices: " << endl;
verboseOutput << "Found devices: " << Qt::endl;
for (QSharedPointer<timelapse::CaptureDevice> d : devices) {
connect(d.data(), &timelapse::CaptureDevice::update, this, &CameraModel::onCameraUpdate);
verboseOutput << " " << d->toString() << endl;
verboseOutput << " " << d->toString() << Qt::endl;
}
}
}
Expand Down Expand Up @@ -116,7 +117,7 @@ QList<QSharedPointer<timelapse::CaptureDevice>> CameraModel::listDevices() {
result.push_back(QSharedPointer<timelapse::Gphoto2Device>(new timelapse::Gphoto2Device(gp2Dev)));
}
} catch (std::exception &e) {
err << "Can't get Gphoto2 devices. " << QString::fromUtf8(e.what()) << endl;
err << "Can't get Gphoto2 devices. " << QString::fromUtf8(e.what()) << Qt::endl;
}

{
Expand Down

0 comments on commit 0c34fed

Please sign in to comment.