Commit ac0d6e27 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make compile without deprecated method

parent 0556fe93
......@@ -61,7 +61,8 @@ find_package(Gpgme REQUIRED)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
#add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
#add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055300)
Please register or sign in to reply
add_subdirectory( icons )
add_subdirectory( doc )
......
......@@ -351,7 +351,7 @@ bool KgpgEditor::slotFileSaveAs()
}
f.close();
} else {
auto statJob = KIO::stat(url, KIO::StatJob::DestinationSide, 0);
auto statJob = KIO::statDetails(url, KIO::StatJob::DestinationSide, {});
KJobWidgets::setWindow(statJob, this);
statJob->exec();
if (!statJob->error()) {
......@@ -405,7 +405,7 @@ void KgpgEditor::slotFind()
m_find->setData(m_editor->toPlainText(), m_editor->textCursor().selectionStart());
else
m_find->setData(m_editor->toPlainText());
connect(m_find, QOverload<const QString&, int, int>::of(&KFind::highlight), m_editor, &KgpgTextEdit::slotHighlightText);
connect(m_find, &KFind::textFound, m_editor, &KgpgTextEdit::slotHighlightText);
connect(m_find, &KFind::findNext, this, &KgpgEditor::slotFindText);
} else {
m_find->setPattern(fd->pattern());
......
......@@ -146,7 +146,7 @@ KgpgKeyInfo::KgpgKeyInfo(KGpgKeyNode *node, KGpgItemModel *model, QWidget *paren
connect(m_owtrust, QOverload<int>::of(&QComboBox::activated), this, &KgpgKeyInfo::slotChangeTrust);
connect(m_photoid, QOverload<const QString &>::of(&QComboBox::activated), this, &KgpgKeyInfo::slotLoadPhoto);
connect(m_email, QOverload<const QString &>::of(&KUrlLabel::leftClickedUrl), this, &KgpgKeyInfo::slotOpenUrl);
connect(m_email, &KUrlLabel::leftClickedUrl, this, &KgpgKeyInfo::slotOpenUrl);
connect(keychange, &KGpgChangeKey::done, this, &KgpgKeyInfo::slotApplied);
connect(m_disable, &QCheckBox::toggled, this, &KgpgKeyInfo::slotDisableKey);
connect(m_expirationbtn, &QPushButton::clicked, this, &KgpgKeyInfo::slotChangeDate);
......@@ -267,9 +267,9 @@ void KgpgKeyInfo::displayKey()
m_photoid->clear();
}
void KgpgKeyInfo::slotOpenUrl(const QString &url) const
void KgpgKeyInfo::slotOpenUrl()
{
QDesktopServices::openUrl(QUrl(url));
QDesktopServices::openUrl(QUrl(m_email->url()));
}
void KgpgKeyInfo::slotLoadPhoto(const QString &uid)
......
......@@ -78,7 +78,7 @@ private:
void cancelButtonClicked();
private Q_SLOTS:
void slotOpenUrl(const QString &url) const;
void slotOpenUrl();
void slotChangeDate();
......
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