aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'textedit.cpp')
-rw-r--r--textedit.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/textedit.cpp b/textedit.cpp
index 1a987bf..4dabfd1 100644
--- a/textedit.cpp
+++ b/textedit.cpp
@@ -20,7 +20,6 @@
*/
#include "textedit.h"
-#include "widgets/keydetailswidget.h"
TextEdit::TextEdit()
{
@@ -66,13 +65,20 @@ void TextEdit::slotNewHelpTab(QString title, QString path)
}
-void TextEdit::slotNewQMLTab(QString title, GpgME::GpgContext *ctx, KgpgCore::KgpgKey key) {
+void TextEdit::slotNewKeyDetailsTab(QString title, GpgME::GpgContext *ctx, KgpgCore::KgpgKey key) {
KeyDetailsWidget *page = new KeyDetailsWidget(ctx, key);
// todo: should parent also be given?
tabWidget->addTab(page, title);
tabWidget->setCurrentIndex(tabWidget->count() - 1);
}
+void TextEdit::slotNewFileEncryptionTab(QString title, GpgME::GpgContext *ctx, KeyList *keyList) {
+ FileEncryptionWidget *page = new FileEncryptionWidget(ctx, keyList);
+ // todo: should parent also be given?
+ tabWidget->addTab(page, title);
+ tabWidget->setCurrentIndex(tabWidget->count() - 1);
+}
+
void TextEdit::slotOpen()
{
QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Open file"),