summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahul Chowdhury <rahulc93@gmail.com>2015-09-11 15:19:32 (GMT)
committerRahul Chowdhury <rahulc93@gmail.com>2015-09-11 15:43:27 (GMT)
commita1fba062ec80e32dc286bc406a707a09b76caafa (patch)
treeb9bfb720993331c16a33ed8cc0ec9937ed58c47e
parentc7b48ea038cb94228c2e28cc0391bdf0c381ca59 (diff)
Port KIcon -> QIcon
REVIEW: 125169
-rw-r--r--plasmoid/applet/bodr/kalzium_plasma.cpp2
-rw-r--r--src/calculator/calculator.cpp4
-rw-r--r--src/tablesdialog.cpp6
3 files changed, 6 insertions, 6 deletions
diff --git a/plasmoid/applet/bodr/kalzium_plasma.cpp b/plasmoid/applet/bodr/kalzium_plasma.cpp
index 733ff5e..fd41dc0 100644
--- a/plasmoid/applet/bodr/kalzium_plasma.cpp
+++ b/plasmoid/applet/bodr/kalzium_plasma.cpp
@@ -134,7 +134,7 @@ void KalziumPlasma::showConfigurationInterface()
{
if (m_dialog == 0) {
m_dialog = new KDialog;
- m_dialog->setWindowIcon(KIcon("kalzium"));
+ m_dialog->setWindowIcon(QIcon::fromTheme("kalzium"));
m_dialog->setCaption(i18n("KalziumPlasma Configuration"));
ui.setupUi(m_dialog->mainWidget());
m_dialog->mainWidget()->layout()->setMargin(0);
diff --git a/src/calculator/calculator.cpp b/src/calculator/calculator.cpp
index 3c187b4..d343a07 100644
--- a/src/calculator/calculator.cpp
+++ b/src/calculator/calculator.cpp
@@ -25,7 +25,7 @@
#include <kstandarddirs.h>
#include <ktoolinvocation.h>
#include <QDialog>
-#include <kicon.h>
+#include <QIcon>
#include <KLocalizedString>
calculator::calculator(QWidget *parent) : KDialog(parent)
{
@@ -69,7 +69,7 @@ calculator::calculator(QWidget *parent) : KDialog(parent)
ui.stack->addWidget(m_equationBalancer);
#endif
// Add an image to the file
- ui.pic->setPixmap((KIcon("calculate")).pixmap(128,128));
+ ui.pic->setPixmap((QIcon::fromTheme("calculate")).pixmap(128,128));
// Connect the tree item selection signal to the corresponding slot
connect(ui.tree, SIGNAL(itemClicked(QTreeWidgetItem*,int)), this,
diff --git a/src/tablesdialog.cpp b/src/tablesdialog.cpp
index dbcc8a7..58518b5 100644
--- a/src/tablesdialog.cpp
+++ b/src/tablesdialog.cpp
@@ -15,7 +15,7 @@
#include "tablesdialog.h"
#include <klocale.h>
-#include <kicon.h>
+#include <QIcon>
#include <kstandarddirs.h>
#include <kactioncollection.h>
#include <kcombobox.h>
@@ -49,7 +49,7 @@ void TablesDialog::createGreekSymbolTable()
QWidget *frame = new QWidget();
KPageWidgetItem *item = addPage(frame, i18n("Greek alphabet"));
item->setHeader(i18n("Greek alphabet"));
- item->setIcon(KIcon("numbers"));
+ item->setIcon(QIcon::fromTheme("numbers"));
QVBoxLayout *layout = new QVBoxLayout(frame);
layout->setMargin(0);
@@ -152,7 +152,7 @@ void TablesDialog::createNumbersTable()
QWidget *frame = new QWidget();
KPageWidgetItem *item = addPage(frame, i18n("Numbers"));
item->setHeader(i18n("Numeric Prefixes and Roman Numerals"));
- item->setIcon(KIcon("numbers"));
+ item->setIcon(QIcon::fromTheme("numbers"));
QVBoxLayout *layout = new QVBoxLayout(frame);
layout->setMargin(0);