Révision 24cec736
original.cpp | ||
---|---|---|
163 | 163 |
{ |
164 | 164 |
qDebug() << i->key().c_str() << " = " << i->value().toString().c_str(); |
165 | 165 |
if (i->key() == "Exif.Image.Artist") { |
166 |
exifData["Exif.Image.Artist"] = "Eric S.";
|
|
166 |
exifData["Exif.Image.Artist"] = ui->leAuthor->text().trimmed().toStdString();
|
|
167 | 167 |
setArtist = true; |
168 | 168 |
} |
169 | 169 |
if (i->key() == "Exif.Image.Copyright") { |
170 |
exifData["Exif.Image.Copyright"] = "Eric S.";
|
|
170 |
exifData["Exif.Image.Copyright"] = ui->leAuthor->text().trimmed().toStdString();
|
|
171 | 171 |
setCopyright = true; |
172 | 172 |
} |
173 | 173 |
if (i->key() == "Exif.Image.Software") { |
... | ... | |
181 | 181 |
if(!setArtist) { |
182 | 182 |
Exiv2::ExifKey k("Exif.Image.Artist"); |
183 | 183 |
Exiv2::Value::AutoPtr v = Exiv2::Value::create(Exiv2::asciiString); |
184 |
v->read("Eric S.");
|
|
184 |
v->read(ui->leAuthor->text().trimmed().toStdString());
|
|
185 | 185 |
exifData.add(k,v.get()); |
186 | 186 |
} |
187 | 187 |
|
188 | 188 |
if(!setCopyright) { |
189 | 189 |
Exiv2::ExifKey k2("Exif.Image.Copyright"); |
190 | 190 |
Exiv2::Value::AutoPtr v2 = Exiv2::Value::create(Exiv2::asciiString); |
191 |
v2->read("Eric S.");
|
|
191 |
v2->read(ui->leAuthor->text().trimmed().toStdString());
|
|
192 | 192 |
exifData.add(k2,v2.get()); |
193 | 193 |
} |
194 | 194 |
|
... | ... | |
235 | 235 |
QTreeWidgetItem *i = new QTreeWidgetItem(ui->treeWidget); |
236 | 236 |
i->setText(0, text); |
237 | 237 |
m_currentProjectDir = m_baseDir.absolutePath() + "/" + text; |
238 |
i->setData(1,0,m_currentProjectDir); |
|
238 | 239 |
|
239 | 240 |
//Creation de la destination |
240 | 241 |
QDir rep; |
... | ... | |
252 | 253 |
{ |
253 | 254 |
ui->lwPictures->clear(); |
254 | 255 |
m_currentProjectDir = item->data(1,0).toString(); |
256 |
m_currentProjectPictureNumber=0; |
|
255 | 257 |
|
256 | 258 |
QDir dir(item->data(1,0).toString()+"/thumbs/"); |
257 | 259 |
dir.setFilter(QDir::Files); |
... | ... | |
268 | 270 |
} |
269 | 271 |
m_currentProjectPictureNumber++; |
270 | 272 |
qDebug() << "On continue la numerotation a " << m_currentProjectPictureNumber; |
273 |
qDebug() << "Espace de stockage du projet " << m_currentProjectDir; |
|
271 | 274 |
} |
272 | 275 |
|
273 | 276 |
void original::on_commandLinkButton_clicked() |
Formats disponibles : Unified diff