Enable to handle .pptx .xlsx .docx extensions
This commit is contained in:
		
							parent
							
								
									53ba300d7e
								
							
						
					
					
						commit
						ef364e998f
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -95,17 +95,20 @@ int32 documentColorIndex(DocumentData *document, QString &ext) { | |||
| 		? document->mimeString().toLower() | ||||
| 		: QString(); | ||||
| 	if (name.endsWith(qstr(".doc")) || | ||||
| 	    	name.endsWith(qstr(".docx")) || | ||||
| 		name.endsWith(qstr(".txt")) || | ||||
| 		name.endsWith(qstr(".psd")) || | ||||
| 		mime.startsWith(qstr("text/"))) { | ||||
| 		colorIndex = 0; | ||||
| 	} else if ( | ||||
| 		name.endsWith(qstr(".xls")) || | ||||
| 		name.endsWith(qstr(".xlsx")) || | ||||
| 		name.endsWith(qstr(".csv"))) { | ||||
| 		colorIndex = 1; | ||||
| 	} else if ( | ||||
| 		name.endsWith(qstr(".pdf")) || | ||||
| 		name.endsWith(qstr(".ppt")) || | ||||
| 		name.endsWith(qstr(".pptx")) || | ||||
| 		name.endsWith(qstr(".key"))) { | ||||
| 		colorIndex = 2; | ||||
| 	} else if ( | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 paulkim3151
						paulkim3151