Commit 75b55c03 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add icon on button

parent 597ba0cf
Pipeline #99108 passed with stage
in 10 minutes and 13 seconds
......@@ -8,6 +8,7 @@
#include "sievescriptdebuggerwidget.h"
#include <KConfigGroup>
#include <KGuiItem>
#include <KLocalizedString>
#include <KSharedConfig>
......@@ -43,6 +44,9 @@ SieveScriptDebuggerDialog::SieveScriptDebuggerDialog(QWidget *parent)
connect(mSieveScriptDebuggerWidget, &SieveScriptDebuggerWidget::debugButtonEnabled, this, &SieveScriptDebuggerDialog::debugButtonEnableStateChanged);
mDebugScriptButton = new QPushButton(i18n("Debug"), this);
const KGuiItem item(i18n("Debug"), QIcon::fromTheme(QStringLiteral("debug-run")));
KGuiItem::assign(mDebugScriptButton, item);
mDebugScriptButton->setObjectName(QStringLiteral("debug_button"));
mDebugScriptButton->setEnabled(false);
connect(mDebugScriptButton, &QPushButton::clicked, mSieveScriptDebuggerWidget, &SieveScriptDebuggerWidget::debugScriptButtonClicked);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment