summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohamed Anwer <[email protected]>2014-11-20 13:49:57 +0200
committerMohamed Anwer <[email protected]>2014-11-20 13:49:57 +0200
commit0e69cf9fcb68ec159dd6ddeebfd8a8c737f160ff (patch)
treec8d34ea393be664ffdb4c4d799280874d9f5a9c5
parent5d61f031d7ee8a11ffb0ff64d9c92d17881c1bd0 (diff)
KIcon to QIcon
-rw-r--r--tests/kipisetup.cpp5
-rw-r--r--tests/kxmlhelloworld/plugin/plugin_kxmlhelloworld.cpp8
2 files changed, 7 insertions, 6 deletions
diff --git a/tests/kipisetup.cpp b/tests/kipisetup.cpp
index 524a6c0..9620da4 100644
--- a/tests/kipisetup.cpp
+++ b/tests/kipisetup.cpp
@@ -31,6 +31,7 @@
#include <QPushButton>
#include <QDir>
#include <QVBoxLayout>
+#include <QWidget>
// KDE includes
@@ -96,7 +97,7 @@ KipiSetup::KipiSetup(QWidget* const parent)
d->pluginsPage = PluginLoader::instance()->configWidget(this);
d->page_plugins = addPage(d->pluginsPage, i18n("Kipi Plugins"));
- d->page_plugins->setIcon(KIcon("kipi"));
+ d->page_plugins->setIcon(QIcon("kipi"));
d->pluginFilter = new KLineEdit(d->pluginsPage);
d->pluginFilter->setClearButtonShown(true);
d->pluginFilter->setClickMessage(i18n("filter..."));
@@ -104,7 +105,7 @@ KipiSetup::KipiSetup(QWidget* const parent)
d->xmlPage = new SetupXML(this);
d->page_xml = addPage(d->xmlPage, i18n("UI layouts"));
- d->page_xml->setIcon(KIcon("application-xml"));
+ d->page_xml->setIcon(QIcon("application-xml"));
d->page_xml->setHeader("Configure the UI file for the KXMLKipiCmd application");
KSharedConfig::Ptr config = KGlobal::config();
diff --git a/tests/kxmlhelloworld/plugin/plugin_kxmlhelloworld.cpp b/tests/kxmlhelloworld/plugin/plugin_kxmlhelloworld.cpp
index 0d4ccce..85ae363 100644
--- a/tests/kxmlhelloworld/plugin/plugin_kxmlhelloworld.cpp
+++ b/tests/kxmlhelloworld/plugin/plugin_kxmlhelloworld.cpp
@@ -180,7 +180,7 @@ void Plugin_KXMLHelloWorld::setupActions()
*/
d->actionImages = new KAction(this);
d->actionImages->setText(i18n("KXML Hello World Image..."));
- d->actionImages->setIcon(KIcon("script-error"));
+ d->actionImages->setIcon(QIcon("script-error"));
d->actionImages->setShortcut(KShortcut(Qt::ALT + Qt::SHIFT + Qt::CTRL + Qt::Key_F1));
/** Connect plugin action signal to dedicated slot.
@@ -200,7 +200,7 @@ void Plugin_KXMLHelloWorld::setupActions()
*/
d->actionTools = new KAction(this);
d->actionTools->setText(i18n("KXML Hello World Tools..."));
- d->actionTools->setIcon(KIcon("script-error"));
+ d->actionTools->setIcon(QIcon("script-error"));
d->actionTools->setShortcut(KShortcut(Qt::ALT+Qt::SHIFT+Qt::CTRL+Qt::Key_F2));
connect(d->actionTools, SIGNAL(triggered(bool)),
this, SLOT(slotActivateActionTools()));
@@ -217,7 +217,7 @@ void Plugin_KXMLHelloWorld::setupActions()
*/
d->actionExport = new KAction(this);
d->actionExport->setText(i18n("KXML Hello World Export..."));
- d->actionExport->setIcon(KIcon("script-error"));
+ d->actionExport->setIcon(QIcon("script-error"));
d->actionExport->setShortcut(KShortcut(Qt::ALT+Qt::SHIFT+Qt::CTRL+Qt::Key_F3));
connect(d->actionExport, SIGNAL(triggered(bool)),
this, SLOT(slotActivateActionExport()));
@@ -228,7 +228,7 @@ void Plugin_KXMLHelloWorld::setupActions()
*/
d->actionImport = new KAction(this);
d->actionImport->setText(i18n("KXML Hello World Import..."));
- d->actionImport->setIcon(KIcon("script-error"));
+ d->actionImport->setIcon(QIcon("script-error"));
d->actionImport->setShortcut(KShortcut(Qt::ALT+Qt::SHIFT+Qt::CTRL+Qt::Key_F4));
connect(d->actionImport, SIGNAL(triggered(bool)),
this, SLOT(slotActivateActionImport()));