diff --git a/src/lib/data/icons.qrc b/src/lib/data/icons.qrc index 2617cc71d..14510c25e 100644 --- a/src/lib/data/icons.qrc +++ b/src/lib/data/icons.qrc @@ -6,6 +6,7 @@ icons/preferences/applications-system.png icons/preferences/applications-webbrowsers.png icons/preferences/preferences-desktop.png + icons/faenza/go-up.png icons/faenza/back.png icons/faenza/close.png icons/faenza/forward.png diff --git a/src/lib/data/icons/faenza/go-up.png b/src/lib/data/icons/faenza/go-up.png new file mode 100644 index 000000000..b82d7a992 Binary files /dev/null and b/src/lib/data/icons/faenza/go-up.png differ diff --git a/src/lib/tools/iconprovider.cpp b/src/lib/tools/iconprovider.cpp index ef1e59069..5553d3e90 100644 --- a/src/lib/tools/iconprovider.cpp +++ b/src/lib/tools/iconprovider.cpp @@ -158,10 +158,7 @@ QIcon IconProvider::standardIcon(QStyle::StandardPixmap icon) case QStyle::SP_MessageBoxWarning: return QIcon::fromTheme("dialog-warning", mApp->style()->standardIcon(QStyle::SP_MessageBoxWarning)); -#ifdef QZ_WS_X11 - default: - return mApp->style()->standardIcon(icon); -#else +#ifndef QZ_WS_X11 case QStyle::SP_DialogCloseButton: return QIcon(":/icons/faenza/close.png"); @@ -171,6 +168,9 @@ QIcon IconProvider::standardIcon(QStyle::StandardPixmap icon) case QStyle::SP_BrowserReload: return QIcon(":/icons/faenza/reload.png"); + case QStyle::SP_FileDialogToParent: + return QIcon(":/icons/faenza/go-up.png"); + case QStyle::SP_ArrowForward: //RTL Support if (QApplication::layoutDirection() == Qt::RightToLeft) { @@ -188,10 +188,9 @@ QIcon IconProvider::standardIcon(QStyle::StandardPixmap icon) else { return QIcon(":/icons/faenza/back.png"); } - - default: - return QIcon(); #endif + default: + return mApp->style()->standardIcon(icon); } }