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
PIM
Kleopatra
Commits
49790088
Commit
49790088
authored
May 26, 2021
by
Ingo Klöcker
Browse files
Remove unused code
GnuPG-bug-id: 5404
parent
732af073
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/mainwindow.cpp
View file @
49790088
...
...
@@ -70,12 +70,9 @@
#include <Libkleo/Formatting>
#include <Libkleo/KeyListModel>
#include <Libkleo/KeyListSortFilterProxyModel>
#include <Libkleo/CryptoConfigDialog>
#include <Libkleo/Stl_Util>
#include <Libkleo/Classify>
#include <Libkleo/KeyCache>
#include <QGpgME/CryptoConfig>
#include <QGpgME/Protocol>
#include <vector>
#include <KSharedConfig>
...
...
@@ -205,8 +202,6 @@ public:
dialog
->
show
();
}
void
configureBackend
();
void
showHandbook
();
void
gnupgLogViewer
()
...
...
@@ -434,12 +429,6 @@ void MainWindow::Private::setupActions()
i18n
(
"Show pad for encrypting/decrypting and signing/verifying text"
),
"note"
,
q
,
SLOT
(
showPadView
()),
QString
(),
false
,
true
},
// most have been MOVED TO keylistcontroller.cpp
#if 0
{
"configure_backend", i18n("Configure GnuPG Backend..."), QString(),
0, q, SLOT(configureBackend()), QString(), false, true
},
#endif
// Settings menu
{
"settings_self_test"
,
i18n
(
"Perform Self-Test"
),
QString
(),
...
...
@@ -498,32 +487,6 @@ void MainWindow::Private::setupActions()
ui
.
tabWidget
.
createActions
(
coll
);
}
void
MainWindow
::
Private
::
configureBackend
()
{
QGpgME
::
CryptoConfig
*
const
config
=
QGpgME
::
cryptoConfig
();
if
(
!
config
)
{
KMessageBox
::
error
(
q
,
i18n
(
"Could not configure the cryptography backend (gpgconf tool not found)"
),
i18n
(
"Configuration Error"
));
return
;
}
Kleo
::
CryptoConfigDialog
dlg
(
config
);
const
int
result
=
dlg
.
exec
();
// Forget all data parsed from gpgconf, so that we show updated information
// when reopening the configuration dialog.
config
->
clear
();
if
(
result
==
QDialog
::
Accepted
)
{
#if 0
// Tell other apps (e.g. kmail) that the gpgconf data might have changed
QDBusMessage message =
QDBusMessage::createSignal(QString(), "org.kde.kleo.CryptoConfig", "changed");
QDBusConnection::sessionBus().send(message);
#endif
}
}
void
MainWindow
::
Private
::
slotConfigCommitted
()
{
controller
.
updateConfig
();
...
...
src/mainwindow.h
View file @
49790088
...
...
@@ -42,7 +42,6 @@ private:
kdtools
::
pimpl_ptr
<
Private
>
d
;
Q_PRIVATE_SLOT
(
d
,
void
closeAndQuit
())
Q_PRIVATE_SLOT
(
d
,
void
selfTest
())
Q_PRIVATE_SLOT
(
d
,
void
configureBackend
())
Q_PRIVATE_SLOT
(
d
,
void
configureToolbars
())
Q_PRIVATE_SLOT
(
d
,
void
configureGroups
())
Q_PRIVATE_SLOT
(
d
,
void
editKeybindings
())
...
...
Ingo Klöcker
@kloecker
mentioned in commit
6a1b1e1c
·
Feb 11, 2022
mentioned in commit
6a1b1e1c
mentioned in commit 6a1b1e1cc9b62ac4f8475f7827c83767ee1b21c8
Toggle commit list
Write
Preview
Markdown
is supported
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