UI and code improvements

This commit is contained in:
Austen Adler 2019-11-29 09:51:40 -05:00
parent 22bfdd8684
commit 2e60b50be5
3 changed files with 18 additions and 6 deletions

View File

@ -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();

View File

@ -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();

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>783</width>
<height>607</height>
<width>742</width>
<height>529</height>
</rect>
</property>
<property name="windowTitle">
@ -59,7 +59,11 @@
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QTextEdit" name="gpsData"/>
<widget class="QTextEdit" name="gpsData">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
@ -149,8 +153,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>783</width>
<height>21</height>
<width>742</width>
<height>20</height>
</rect>
</property>
<widget class="QMenu" name="menuOpen">