UI and code improvements
This commit is contained in:
parent
22bfdd8684
commit
2e60b50be5
@ -84,6 +84,13 @@ void Picture::on_processButton_clicked(){
|
|||||||
myStringList.append(ui->fileList->item(i)->text());
|
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){
|
foreach(const QString &str,myStringList){
|
||||||
QImageReader reader(str);
|
QImageReader reader(str);
|
||||||
if(!reader.format().isEmpty()){
|
if(!reader.format().isEmpty()){
|
||||||
@ -95,6 +102,7 @@ void Picture::on_processButton_clicked(){
|
|||||||
assert (image.get()!=0);
|
assert (image.get()!=0);
|
||||||
image->readMetadata();
|
image->readMetadata();
|
||||||
if(ui->eraseOtherMetadata->isChecked()){
|
if(ui->eraseOtherMetadata->isChecked()){
|
||||||
|
ui->log->append("Erasing all other image metadata");
|
||||||
image->clearMetadata();
|
image->clearMetadata();
|
||||||
}
|
}
|
||||||
Exiv2::ExifData &exifData=image->exifData();
|
Exiv2::ExifData &exifData=image->exifData();
|
||||||
|
@ -27,7 +27,7 @@ class Picture : public QMainWindow {
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Picture(QWidget *parent = 0);
|
explicit Picture(QWidget *parent = nullptr);
|
||||||
~Picture();
|
~Picture();
|
||||||
private slots:
|
private slots:
|
||||||
void changeDirectory();
|
void changeDirectory();
|
||||||
|
14
picture.ui
14
picture.ui
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>783</width>
|
<width>742</width>
|
||||||
<height>607</height>
|
<height>529</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -59,7 +59,11 @@
|
|||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTextEdit" name="gpsData"/>
|
<widget class="QTextEdit" name="gpsData">
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||||
@ -149,8 +153,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>783</width>
|
<width>742</width>
|
||||||
<height>21</height>
|
<height>20</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuOpen">
|
<widget class="QMenu" name="menuOpen">
|
||||||
|
Loading…
Reference in New Issue
Block a user