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); | ||||
|     ~ExportDialog(); | ||||
| 
 | ||||
| private slots: | ||||
|     void on_cmdSnapmaticClose_clicked(); | ||||
| 
 | ||||
| private: | ||||
|     Ui::ExportDialog *ui; | ||||
| }; | ||||
|  |  | |||
|  | @ -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"; | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue