kgpg
keyinfodialog.cpp
Go to the documentation of this file.
165 KMessageBox::error(this, i18n("<qt>The requested key is not present in the keyring anymore.<br />Perhaps it was deleted by another application</qt>"), i18n("Key not found"));
184 m_email->setUrl(QLatin1String( "mailto:" ) + name + QLatin1Char( '<' ) + email + QLatin1Char( '>' ));
203 m_algorithm->setText(Convert::toString(key->algorithm()) + QLatin1String( " / " ) + Convert::toString(key->encryptionAlgorithm()));
204 m_algorithm->setWhatsThis(i18n("<qt>The left part is the algorithm used by the <b>signature</b> key. The right part is the algorithm used by the <b>encryption</b> key.</qt>"));
205 m_creation->setText(KGlobal::locale()->formatDate(m_node->getCreation().date(), KLocale::ShortDate));
209 m_expiration->setText(KGlobal::locale()->formatDate(m_node->getExpiration().date(), KLocale::ShortDate));
213 m_length->setWhatsThis(i18n("<qt>The left part is the size of the <b>signature</b> key. The right part is the size of the <b>encryption</b> key.</qt>"));
262 pixmap = QPixmap::fromImage(img.scaled(m_photo->width(), m_photo->height(), Qt::KeepAspectRatio));
303 KMessageBox::error(this, i18n("Bad old passphrase, the passphrase for the key was not changed"), i18n("Could not change passphrase"));
QLayout * layout() const
bool wasChanged()
Checks if the cached values differ from those of the key.
Definition: kgpgchangekey.cpp:153
Definition: kgpgitemmodel.h:44
const QPalette & palette() const
const KGpgSignableNode * getUid(const unsigned int index) const
get the user id or user attribute with the given number
Definition: KGpgKeyNode.cpp:312
const KgpgCore::KgpgKey * getKey() const
Returns a reference to the key used in this object.
Definition: KGpgKeyNode.cpp:193
void setColor(ColorGroup group, ColorRole role, const QColor &color)
void setFrameShape(Shape)
void setMinimumWidth(int minw)
T value() const
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
Definition: kgpgkey.h:236
void selfdestruct(const bool applyChanges)
Tell the object to remove itself once all work is done.
Definition: kgpgchangekey.cpp:167
void setLineWidth(int)
void setOwTrust(const gpgme_validity_t trust)
Cache new owner trust.
Definition: kgpgchangekey.cpp:53
virtual KgpgCore::KgpgItemType getType() const =0
Returns the item type of this object.
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QPalette::ColorRole backgroundRole() const
int toInt(bool *ok, int base) const
bool isEmpty() const
void setExpiration(const QDateTime &date)
Cache new expiration date.
Definition: kgpgchangekey.cpp:43
void setOverrideCursor(const QCursor &cursor)
void restoreOverrideCursor()
Definition: keyinfodialog.h:40
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: kgpgitemmodel.cpp:95
void setText(const QString &)
A class for changing several properties of a key at once.
Definition: kgpgchangekey.h:44
void setMargin(int margin)
QString right(int n) const
void keyNeedsRefresh(KGpgKeyNode *node)
KGpgKeyNode * findKey(const QString &keyId)
Find a key node with the given id.
Definition: KGpgRootNode.cpp:118
void setTextInteractionFlags(QFlags< Qt::TextInteractionFlag > flags)
virtual QString getSize() const
Returns a string describing the size of this object.
Definition: KGpgKeyNode.cpp:81
bool isNull() const
QDate date() const
KgpgTrustLabel(QWidget *parent=0, const QString &text=QString(), const QColor &color=QColor())
Definition: keyinfodialog.cpp:49
QModelIndex nodeIndex(KGpgNode *node, const int column=0)
Definition: kgpgitemmodel.cpp:406
void setAutoFillBackground(bool enabled)
QImage toImage() const
QString getBeautifiedFingerprint() const
Print the full key fingerprint with spaces inserted.
Definition: KGpgKeyNode.cpp:137
KgpgKeyAlgo encryptionAlgorithm() const
Definition: kgpgkey.cpp:318
QString toString() const
void setSpacing(int spacing)
QImage scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.