Commit 6f5de1a4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated method (qt5.15)

parent d2935e91
......@@ -295,9 +295,17 @@ void CryptoOperationsConfigWidget::setupGui()
connect(mQuickSignCB, &QCheckBox::toggled, this, &CryptoOperationsConfigWidget::changed);
connect(mQuickEncryptCB, &QCheckBox::toggled, this, &CryptoOperationsConfigWidget::changed);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(mChecksumDefinitionCB, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
#else
connect(mChecksumDefinitionCB, static_cast<void (QComboBox::*)(int, const QString &)>(&QComboBox::currentIndexChanged) ,
#endif
this, &CryptoOperationsConfigWidget::changed);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(mArchiveDefinitionCB, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
#else
connect(mArchiveDefinitionCB, static_cast<void (QComboBox::*)(int, const QString &)>(&QComboBox::currentIndexChanged) ,
#endif
this, &CryptoOperationsConfigWidget::changed);
connect(mPGPFileExtCB, &QCheckBox::toggled, this, &CryptoOperationsConfigWidget::changed);
connect(mAutoDecryptVerifyCB, &QCheckBox::toggled, this, &CryptoOperationsConfigWidget::changed);
......
......@@ -81,6 +81,7 @@
#include <QTime>
#include <QEventLoop>
#include <QThreadPool>
#include <QElapsedTimer>
#include <gpgme++/global.h>
#include <gpgme++/error.h>
......@@ -120,7 +121,7 @@ int main(int argc, char **argv)
KCrash::initialize();
QTime timer;
QElapsedTimer timer;
timer.start();
KLocalizedString::setApplicationDomain("kleopatra");
......
......@@ -213,7 +213,7 @@ public:
void gnupgLogViewer()
{
if (!QProcess::startDetached(QStringLiteral("kwatchgnupg")))
if (!QProcess::startDetached(QStringLiteral("kwatchgnupg"), QStringList()))
KMessageBox::error(q, i18n("Could not start the GnuPG Log Viewer (kwatchgnupg). "
"Please check your installation."),
i18n("Error Starting KWatchGnuPG"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment