Changeset View
Changeset View
Standalone View
Standalone View
plugins/libsinglefileplugin/singlefileplugin.cpp
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Line(s) | 140 | { | |||
---|---|---|---|---|---|
141 | QString uncompressedName(QFileInfo(filename()).fileName()); | 141 | QString uncompressedName(QFileInfo(filename()).fileName()); | ||
142 | 142 | | |||
143 | // Bug 252701: For .svgz just remove the terminal "z". | 143 | // Bug 252701: For .svgz just remove the terminal "z". | ||
144 | if (uncompressedName.endsWith(QLatin1String(".svgz"), Qt::CaseInsensitive)) { | 144 | if (uncompressedName.endsWith(QLatin1String(".svgz"), Qt::CaseInsensitive)) { | ||
145 | uncompressedName.chop(1); | 145 | uncompressedName.chop(1); | ||
146 | return uncompressedName; | 146 | return uncompressedName; | ||
147 | } | 147 | } | ||
148 | 148 | | |||
149 | foreach(const QString & extension, m_possibleExtensions) { | 149 | for (const QString & extension : qAsConst(m_possibleExtensions)) { | ||
150 | qCDebug(ARK) << extension; | 150 | qCDebug(ARK) << extension; | ||
151 | 151 | | |||
152 | if (uncompressedName.endsWith(extension, Qt::CaseInsensitive)) { | 152 | if (uncompressedName.endsWith(extension, Qt::CaseInsensitive)) { | ||
153 | uncompressedName.chop(extension.size()); | 153 | uncompressedName.chop(extension.size()); | ||
154 | return uncompressedName; | 154 | return uncompressedName; | ||
155 | } | 155 | } | ||
156 | } | 156 | } | ||
157 | 157 | | |||
158 | return uncompressedName + QStringLiteral( ".uncompressed" ); | 158 | return uncompressedName + QStringLiteral( ".uncompressed" ); | ||
159 | } | 159 | } | ||
160 | 160 | | |||
161 | bool LibSingleFileInterface::testArchive() | 161 | bool LibSingleFileInterface::testArchive() | ||
162 | { | 162 | { | ||
163 | return false; | 163 | return false; | ||
164 | } | 164 | } | ||
165 | 165 | |