| 143 | } |
| 144 | |
| 145 | static QString thumbFileNameFrom(const QString &filePath) |
| 146 | { |
| 147 | if (filePath.isEmpty()) { |
| 148 | return QString(); |
| 149 | } |
| 150 | |
| 151 | static const QRegularExpression braces("[\\{\\}]"); |
| 152 | QString thumbPath = filePath; |
| 153 | thumbPath.replace(braces, "").replace(wgtSuff, thumbSuff); |
| 154 | |
| 155 | return thumbPath; |
| 156 | } |
| 157 | |
| 158 | |
| 159 | QString svgPageName(int pageIndex) |