Enable to handle .pptx .xlsx .docx extensions

This commit is contained in:
paulkim3151 2019-06-03 01:46:59 +09:00 committed by John Preston
parent 53ba300d7e
commit ef364e998f
1 changed files with 3 additions and 0 deletions

View File

@ -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 (