change title, date and HDR

display EXIF data if more thumbs are selected
This commit is contained in:
2019-03-07 17:36:47 +01:00
parent d48e1e7331
commit 8b5339b037
16 changed files with 1013 additions and 258 deletions
+3 -3
View File
@@ -50,14 +50,14 @@ QString picture2Path(cPicture* lpPicture, const QDateTime& newDate, const QStrin
else if(lpPicture->dateTime().isValid())
szPath = lpPicture->dateTime().toString("yyyy/yyyy-MM-dd");
if(!szNewTitle.isEmpty())
if(!szNewTitle.isNull() && !szNewTitle.isEmpty())
{
if(szPath.isEmpty())
szPath = szNewTitle;
else
szPath.append(" - " + szNewTitle);
}
else if(!lpPicture->title().isEmpty())
else if(szNewTitle.isNull() && !lpPicture->title().isEmpty())
{
if(szPath.isEmpty())
szPath = lpPicture->title();
@@ -122,7 +122,7 @@ QStandardItem* insertPath(QString szPath, QStandardItem* lpRootItem)
szPath1.append(szPathList[path]);
QStandardItem* lpNewItem = new QStandardItem(szPathList[path]);
lpCurRoot->appendRow(lpNewItem);
lpNewItem->setData(QVariant::fromValue(szPath1), Qt::UserRole+2);
lpNewItem->setData(QVariant::fromValue(szPath1), Qt::UserRole+1);
szPath1.append("/");
lpCurRoot = lpNewItem;