add missing koIconName tags for all KGuiItem usages

parent 9eeec7d6
......@@ -244,7 +244,7 @@ bool SQLiteConnection::drv_useDatabaseInternal(bool *cancelled,
+ i18n("The file is probably already open on this or another computer.") + " "
+ i18n("Could not gain exclusive access for writing the file."),
KMessageBox::WarningContinueCancel, KMessageBox::Continue,
KGuiItem(i18n("Open As Read-Only"), "document-open"), KStandardGuiItem::cancel(),
KGuiItem(i18n("Open As Read-Only"), koIconName("document-open")), KStandardGuiItem::cancel(),
"askBeforeOpeningFileReadOnly", KMessageBox::Notify, msgHandler)) {
clearError();
if (!drv_closeDatabase())
......
......@@ -27,7 +27,8 @@
#include <kcomponentdata.h>
#include <kfileitem.h>
#include <kio/previewjob.h>
#include <kicon.h>
#include <KoIcon.h>
enum KoRecentDocumentRoles {
......@@ -78,7 +79,7 @@ KoRecentDocumentsPane::KoRecentDocumentsPane(QWidget* parent, const KComponentDa
, d(new KoRecentDocumentsPanePrivate)
{
setFocusProxy(m_documentList);
KGuiItem openGItem(i18n("Open This Document"), "document-open");
KGuiItem openGItem(i18n("Open This Document"), koIconName("document-open"));
m_openButton->setGuiItem(openGItem);
m_alwaysUseCheckBox->hide();
......
......@@ -39,6 +39,7 @@
#include <ktemporaryfile.h>
#include <klineedit.h>
#include <klocale.h>
#include <KoIcon.h>
#include <KoDocument.h>
#include <KoTemplates.h>
#include <KoTemplateTree.h>
......@@ -468,7 +469,7 @@ void KoTemplateCreateDia::slotRemove() {
}
if(KMessageBox::warningContinueCancel(this, what,
removed,KGuiItem(i18n("&Delete"),"edit-delete"))==KMessageBox::Cancel) {
removed,KGuiItem(i18n("&Delete"), koIconName("edit-delete")))==KMessageBox::Cancel) {
d->m_name->setFocus();
return;
}
......
......@@ -246,7 +246,7 @@ void Thesaurus::checkSection(QTextDocument *document, int startPosition, int end
m_word = document->toPlainText();
m_dialog->showButton(KDialog::Ok, false);
m_dialog->setButtonGuiItem(KDialog::Cancel,
KGuiItem(i18nc("@action:button Close thesaurus dialog", "&Close"), QString::fromLatin1("dialog-cancel")));
KGuiItem(i18nc("@action:button Close thesaurus dialog", "&Close"), koIconName("dialog-cancel")));
m_replaceLineEdit->setEnabled(false);
m_replaceLabel->setEnabled(false);
}
......@@ -258,7 +258,7 @@ void Thesaurus::checkSection(QTextDocument *document, int startPosition, int end
m_document = document;
m_startPosition = startPosition;
m_dialog->setButtonGuiItem(KDialog::Ok,
KGuiItem(i18n("&Replace"), QString::fromLatin1("dialog-ok")));
KGuiItem(i18n("&Replace"), koIconName("dialog-ok")));
slotFindTerm(m_word.trimmed());
m_replaceLineEdit->setText(m_word.trimmed());
}
......
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