auto picture title improved

This commit is contained in:
Rafael 2016-04-20 12:14:19 +02:00
parent 2dc99214fa
commit f45ae57741
2 changed files with 12 additions and 0 deletions

View file

@ -33,6 +33,9 @@ public:
explicit ExportDialog(QWidget *parent = 0);
~ExportDialog();
private slots:
void on_cmdSnapmaticClose_clicked();
private:
Ui::ExportDialog *ui;
};

View file

@ -233,7 +233,16 @@ void SnapmaticPicture::parseSnapmaticExportAndSortString()
monthStr = dateStrList.at(0);
}
QString cmpPicTitl = titlStr;
cmpPicTitl.replace("\"", "''");
cmpPicTitl.replace(" ", "_");
cmpPicTitl.replace(":", "-");
cmpPicTitl.replace("\\", "");
cmpPicTitl.replace("/", "");
cmpPicTitl.replace("<", "");
cmpPicTitl.replace(">", "");
cmpPicTitl.replace("*", "");
cmpPicTitl.replace("?", "");
cmpPicTitl.replace(".", "");
sortStr = yearStr + monthStr + dayStr + timeStr;
picExportFileName = sortStr + "_" + cmpPicTitl + ".jpg";
}