Commit 29aafde0 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Port away from deprecated SmallIcon method

Summary: SmallIcon is deprecated since KF 5.63

Test Plan: Compiles

Reviewers: #kde_applications, aacid

Reviewed By: #kde_applications, aacid

Subscribers: aacid

Differential Revision: https://phabricator.kde.org/D25358
parent c1f53f12
......@@ -58,11 +58,11 @@ AreaListView::AreaListView(QWidget *parent)
QHBoxLayout *buttonsLayout = new QHBoxLayout;
upBtn = new QPushButton;
upBtn->setIcon(SmallIcon("go-up"));
upBtn->setIcon(QIcon::fromTheme("go-up"));
buttonsLayout->addWidget(upBtn);
downBtn = new QPushButton;
downBtn->setIcon(SmallIcon("go-down"));
downBtn->setIcon(QIcon::fromTheme("go-down"));
buttonsLayout->addWidget(downBtn);
mainLayout->addLayout(buttonsLayout);
......
......@@ -279,7 +279,7 @@ QWidget* AreaDialog::createGeneralPage()
hrefEdit = new QLineEdit(area->attribute("href"));
hboxLayout->addWidget(hrefEdit);
QPushButton *btn = new QPushButton;
btn->setIcon(SmallIcon("document-open"));
btn->setIcon(QIcon::fromTheme("document-open"));
connect( btn, SIGNAL(pressed()), this, SLOT(slotChooseHref()));
hboxLayout->addWidget(btn);
......
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