Libkleo
auditlogviewer.cpp
46 auto copyClipBtn = buttonBox->addButton(i18nc("@action:button", "&Copy to Clipboard"), QDialogButtonBox::ActionRole);
51 auto saveAsBtn = buttonBox->addButton(i18nc("@action:button", "&Save to Disk..."), QDialogButtonBox::ActionRole);
68 qDebug() << "buttonBox->style()->styleHint(QStyle::SH_DialogButtonLayout, ...):" << buttonBox->style()->styleHint(QStyle::SH_DialogButtonLayout, nullptr, buttonBox);
89void AuditLogViewer::showAuditLog(QWidget *parent, const AuditLogEntry &auditLog, const QString &title)
93 KMessageBox::information(parent, i18n("Your system does not have support for GnuPG Audit Logs"), i18nc("@title:window", "System Error"));
98 i18n("An error occurred while trying to retrieve the GnuPG Audit Log:\n%1", Formatting::errorAsString(err)),
103 KMessageBox::information(parent, i18n("No GnuPG Audit Log available for this operation."), i18nc("@title:window", "No GnuPG Audit Log"));
109 alv->setWindowTitle(title.isEmpty() ? i18nc("@title:window", "GnuPG Audit Log Viewer") : title);
124 const QString fileName = QFileDialog::getSaveFileName(this, i18n("Choose File to Save GnuPG Audit Log to"));
144 i18n("Could not save to file \"%1\": %2", file.fileName(), QString::fromLocal8Bit(strerror(err))),
static void assign(QPushButton *button, const KGuiItem &item)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
void information(QWidget *parent, const QString &text, const QString &title=QString(), const QString &dontShowAgainName=QString(), Options options=Notify)
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
KGuiItem close()
void clicked(bool checked)
virtual void accept()
virtual void reject()
ActionRole
void accepted()
QPushButton * addButton(StandardButton button)
void rejected()
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, Options options)
QIcon fromTheme(const QString &name)
WriteOnly
QObject * parent() const const
void setObjectName(QAnyStringView name)
QString fromLocal8Bit(QByteArrayView str)
bool isEmpty() const const
SH_DialogButtonLayout
virtual int styleHint(StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const const=0
WA_DeleteOnClose
void clearSelection()
void copy()
void setHtml(const QString &text)
void selectAll()
QTextCursor textCursor() const const
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QWidget * focusProxy() const const
QWidget * nextInFocusChain() const const
size
QStyle * style() const const
windowTitle
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:00:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:00:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.