Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Ark
Commits
7bceb6ef
Commit
7bceb6ef
authored
Jun 30, 2021
by
Alexey Ivanov
🐢
Committed by
Elvis Angelaccio
Jul 04, 2021
Browse files
libzipplugin: some changes for merge review.
parent
b564e0ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
kerfuffle/compressionoptionswidget.cpp
View file @
7bceb6ef
...
...
@@ -109,7 +109,7 @@ QString CompressionOptionsWidget::password() const
return
pwdWidget
->
password
();
}
ArchiveFormat
CompressionOptionsWidget
::
getA
rchiveFormat
()
const
ArchiveFormat
CompressionOptionsWidget
::
a
rchiveFormat
()
const
{
const
KPluginMetaData
metadata
=
PluginManager
().
preferredPluginFor
(
m_mimetype
)
->
metaData
();
return
ArchiveFormat
::
fromMetadata
(
m_mimetype
,
metadata
);
...
...
@@ -117,7 +117,7 @@ ArchiveFormat CompressionOptionsWidget::getArchiveFormat() const
void
CompressionOptionsWidget
::
updateWidgets
()
{
const
ArchiveFormat
archiveFormat
=
getA
rchiveFormat
();
const
ArchiveFormat
archiveFormat
=
this
->
a
rchiveFormat
();
Q_ASSERT
(
archiveFormat
.
isValid
());
if
(
archiveFormat
.
encryptionType
()
!=
Archive
::
Unencrypted
)
{
...
...
@@ -289,15 +289,14 @@ void CompressionOptionsWidget::slotCompMethodChanged(const QString &value)
}
}
const
ArchiveFormat
archiveFormat
=
getA
rchiveFormat
();
const
ArchiveFormat
archiveFormat
=
this
->
a
rchiveFormat
();
Q_ASSERT
(
archiveFormat
.
isValid
());
if
(
m_mimetype
==
QMimeDatabase
().
mimeTypeForName
(
QStringLiteral
(
"application/zip"
)))
{
if
(
value
==
QLatin1String
(
"Zstd"
))
{
compLevelSlider
->
setMaximum
(
22
);
}
else
{
}
else
{
compLevelSlider
->
setMaximum
(
archiveFormat
.
maxCompressionLevel
());
}
}
...
...
kerfuffle/compressionoptionswidget.h
View file @
7bceb6ef
...
...
@@ -62,7 +62,7 @@ public:
private:
void
updateWidgets
();
ArchiveFormat
getA
rchiveFormat
()
const
;
ArchiveFormat
a
rchiveFormat
()
const
;
QMimeType
m_mimetype
;
CompressionOptions
m_opts
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment