Commit 9936b310 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Add icons to some more dialog buttons

parent cc461ba3
......@@ -590,7 +590,7 @@ bool ConnectionManager::validateIdentity(IdentityPtr identity, bool interactive)
mainWindow,
i18n("<qt>Your identity \"%1\" is not set up correctly:<br/>%2</qt>", identity->getName(), errors),
i18n("Identity Settings"),
KGuiItem(i18n("Edit Identity...")),
KGuiItem(i18n("Edit Identity..."), QStringLiteral("document-edit")),
KStandardGuiItem::cancel());
if (result == KMessageBox::Continue)
......
......@@ -157,7 +157,7 @@ namespace Konversation
{
if(m_item->getFileURL() == m_urlreqFileURL->url())
{
m_buttonBox->button(QDialogButtonBox::Ok)->setText(KStandardGuiItem::overwrite().text());
KGuiItem::assign(m_buttonBox->button(QDialogButtonBox::Ok), KStandardGuiItem::overwrite());
m_buttonBox->button(QDialogButtonBox::Ok)->setEnabled(m_enabledActions & RA_Overwrite);
if(m_buttonBox->standardButtons() & QDialogButtonBox::Retry)
......@@ -168,6 +168,7 @@ namespace Konversation
else
{
m_buttonBox->button(QDialogButtonBox::Ok)->setText(i18n("R&ename"));
m_buttonBox->button(QDialogButtonBox::Ok)->setIcon(QIcon::fromTheme(QStringLiteral("edit-rename")));
m_buttonBox->button(QDialogButtonBox::Ok)->setEnabled(m_enabledActions & RA_Rename);
if(m_buttonBox->standardButtons() & QDialogButtonBox::Retry)
......
......@@ -481,8 +481,8 @@ bool IRCInput::checkPaste(QString& text)
"the chat. This can cause connection resets or flood kills. "
"Do you really want to continue?</qt>", bytesString, linesString),
i18n("Large Paste Warning"),
KGuiItem(i18n("Paste")),
KGuiItem(i18n("&Edit...")),
KGuiItem(i18n("Paste"), QStringLiteral("edit-paste")),
KGuiItem(i18n("&Edit..."), QStringLiteral("document-edit")),
KStandardGuiItem::cancel(),
QStringLiteral("LargePaste"),
KMessageBox::Dangerous);
......
......@@ -234,7 +234,7 @@ bool StatusPanel::closeYourself(bool confirm)
this,
i18n("Do you want to disconnect from '%1'?\n\nAll associated tabs will be closed as well.",m_server->getServerName()),
i18n("Disconnect From Server"),
KGuiItem(i18n("Disconnect")),
KGuiItem(i18n("Disconnect"), QStringLiteral("network-disconnect")),
KStandardGuiItem::cancel(),
QStringLiteral("QuitServerTab"));
}
......
Supports Markdown
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