~ubuntu-branches/ubuntu/wily/psi/wily

« back to all changes in this revision

Viewing changes to src/pgpkeydlg.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
#include <pgputil.h>
31
31
#include "pgpkeydlg.h"
 
32
#include "common.h"
 
33
#include "showtextdlg.h"
32
34
 
33
35
class KeyViewItem : public Q3ListViewItem
34
36
{
50
52
        connect(ui_.lv_keys, SIGNAL(doubleClicked(Q3ListViewItem *)), SLOT(qlv_doubleClicked(Q3ListViewItem *)));
51
53
        connect(ui_.pb_ok, SIGNAL(clicked()), SLOT(do_accept()));
52
54
        connect(ui_.pb_cancel, SIGNAL(clicked()), SLOT(reject()));
 
55
        connect(ui_.pb_dtext, SIGNAL(clicked()), SLOT(show_ksm_dtext()));
53
56
 
54
57
        Q3ListViewItem *isel = 0;
55
58
 
105
108
        entry_ = i->entry_;
106
109
        accept();
107
110
}
 
111
 
 
112
void PGPKeyDlg::show_ksm_dtext()
 
113
{
 
114
        QString dtext = QCA::KeyStoreManager::diagnosticText();
 
115
        ShowTextDlg *w = new ShowTextDlg(dtext, true, false, this);
 
116
        w->setWindowTitle(CAP(tr("Key Storage Diagnostic Text")));
 
117
        w->resize(560, 240);
 
118
        w->show();
 
119
}