Small fix to icon name usage in KoDocumentRdfEditWidget & KoPageWidgetItem

parent 685325b4
......@@ -439,7 +439,7 @@ void KoDocumentInfoDlg::addPageItem(KoPageWidgetItem *item)
{
KPageWidgetItem * page = new KPageWidgetItem(item->widget(), item->name());
page->setHeader(item->name());
page->setIcon(koIcon(item->icon()));
page->setIcon(KIcon(item->iconName()));
addPage(page);
d->pages.append(page);
......
......@@ -13,8 +13,8 @@ public:
virtual ~KoPageWidgetItem() {}
virtual QWidget *widget() = 0;
virtual const QString name() const = 0;
virtual const QLatin1String icon() const = 0;
virtual QString name() const = 0;
virtual QString iconName() const = 0;
virtual bool shouldDialogCloseBeVetoed() = 0;
virtual void apply() = 0;
};
......
......@@ -30,6 +30,7 @@
// main
#include <KoDocument.h>
#include <KoGlobal.h>
#include <KoIcon.h>
// KDE
#include <kdebug.h>
#include <kmenu.h>
......@@ -342,14 +343,14 @@ void KoDocumentRdfEditWidget::apply()
}
}
const QString KoDocumentRdfEditWidget::name() const
QString KoDocumentRdfEditWidget::name() const
{
return i18n("Rdf");
}
const QLatin1String KoDocumentRdfEditWidget::icon() const
QString KoDocumentRdfEditWidget::iconName() const
{
return QLatin1String("text-rdf");
return koIconName("text-rdf");
}
void KoDocumentRdfEditWidget::semanticObjectUpdated(hKoRdfSemanticItem item)
......
......@@ -69,8 +69,8 @@ public:
/** OK button in dialog, if this returns false then do not close the dialog */
void apply();
const QString name() const;
const QLatin1String icon() const;
QString name() const;
QString iconName() const;
public slots:
......
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