From 2e60b50be50c3ec6a29cf885be698c9a8a03a506 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Fri, 29 Nov 2019 09:51:40 -0500 Subject: [PATCH] UI and code improvements --- picture.cpp | 8 ++++++++ picture.h | 2 +- picture.ui | 14 +++++++++----- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/picture.cpp b/picture.cpp index 9195f63..3eaac1b 100644 --- a/picture.cpp +++ b/picture.cpp @@ -84,6 +84,13 @@ void Picture::on_processButton_clicked(){ myStringList.append(ui->fileList->item(i)->text()); } //}}} + if (ui->labelImagesRadio->isChecked()) { + ui->log->append("Writing label"); + ui->log->append(ui->labelText->text()); + } else { + ui->log->append("Not writing labels"); + } + foreach(const QString &str,myStringList){ QImageReader reader(str); if(!reader.format().isEmpty()){ @@ -95,6 +102,7 @@ void Picture::on_processButton_clicked(){ assert (image.get()!=0); image->readMetadata(); if(ui->eraseOtherMetadata->isChecked()){ + ui->log->append("Erasing all other image metadata"); image->clearMetadata(); } Exiv2::ExifData &exifData=image->exifData(); diff --git a/picture.h b/picture.h index ed14778..05f17e4 100644 --- a/picture.h +++ b/picture.h @@ -27,7 +27,7 @@ class Picture : public QMainWindow { Q_OBJECT public: - explicit Picture(QWidget *parent = 0); + explicit Picture(QWidget *parent = nullptr); ~Picture(); private slots: void changeDirectory(); diff --git a/picture.ui b/picture.ui index 8792506..1b927d2 100644 --- a/picture.ui +++ b/picture.ui @@ -6,8 +6,8 @@ 0 0 - 783 - 607 + 742 + 529 @@ -59,7 +59,11 @@ - + + + true + + @@ -149,8 +153,8 @@ 0 0 - 783 - 21 + 742 + 20