KIcon -> QIcon

This commit is contained in:
Luca Beltrame 2014-10-03 23:02:19 +02:00
parent a568beac2a
commit e2cdec1947
3 changed files with 5 additions and 5 deletions

View file

@ -60,7 +60,7 @@ DanbooruConnectWidget::DanbooruConnectWidget(QVector< KUrl > urlList,
setupUi(this);
danbooruUrlComboBox->setFocus();
closeButton->setIcon(KIcon(QLatin1String("dialog-close")));
closeButton->setIcon(QIcon::fromTheme(QLatin1String("dialog-close")));
closeButton->setToolTip(i18n("Close dialog and discard changes"));
userLineEdit->setClearButtonShown(true);
passwdLineEdit->setClearButtonShown(true);

View file

@ -67,11 +67,11 @@ namespace Danbooru {
QAction * connectAction = new QAction(
KIcon(QLatin1String("document-open-remote")),
QIcon::fromTheme(QLatin1String("document-open-remote")),
i18n("Connect..."),
this);
QAction * fetchAction = new QAction(KIcon(QLatin1String("download")),
QAction * fetchAction = new QAction(QIcon::fromTheme(QLatin1String("download")),
i18n("Download"), this);
connectAction->setShortcut(KStandardShortcut::open());

View file

@ -59,9 +59,9 @@ namespace Danbooru {
m_buttonSize = qMax(sz.width(), sz.height());
m_downloadButton = new KPushButton(KIcon("download"),
m_downloadButton = new KPushButton(QIcon::fromTheme("download"),
QString(), itemView);
m_viewButton = new KPushButton(KIcon("view-preview"), QString(),
m_viewButton = new KPushButton(QIcon::fromTheme("view-preview"), QString(),
itemView);
m_downloadButton->hide();