auto picture title improved
This commit is contained in:
parent
2dc99214fa
commit
f45ae57741
2 changed files with 12 additions and 0 deletions
|
@ -33,6 +33,9 @@ public:
|
||||||
explicit ExportDialog(QWidget *parent = 0);
|
explicit ExportDialog(QWidget *parent = 0);
|
||||||
~ExportDialog();
|
~ExportDialog();
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void on_cmdSnapmaticClose_clicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::ExportDialog *ui;
|
Ui::ExportDialog *ui;
|
||||||
};
|
};
|
||||||
|
|
|
@ -233,7 +233,16 @@ void SnapmaticPicture::parseSnapmaticExportAndSortString()
|
||||||
monthStr = dateStrList.at(0);
|
monthStr = dateStrList.at(0);
|
||||||
}
|
}
|
||||||
QString cmpPicTitl = titlStr;
|
QString cmpPicTitl = titlStr;
|
||||||
|
cmpPicTitl.replace("\"", "''");
|
||||||
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;
|
sortStr = yearStr + monthStr + dayStr + timeStr;
|
||||||
picExportFileName = sortStr + "_" + cmpPicTitl + ".jpg";
|
picExportFileName = sortStr + "_" + cmpPicTitl + ".jpg";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue