Don't fall back to ugly Qt close icon

This commit is contained in:
Janek Bevendorff 2017-02-25 16:09:26 +01:00
parent 1f6f7b614c
commit 6e2254c13d
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53

View File

@ -20,6 +20,8 @@
*/
#include "KMessageWidget.h"
#include "core/FilePath.h"
#include <QAction>
#include <QEvent>
#include <QGridLayout>
@ -89,7 +91,7 @@ void KMessageWidgetPrivate::init(KMessageWidget *q_ptr)
QAction *closeAction = new QAction(q);
closeAction->setText(KMessageWidget::tr("&Close"));
closeAction->setToolTip(KMessageWidget::tr("Close message"));
closeAction->setIcon(q->style()->standardIcon(QStyle::SP_DialogCloseButton));
closeAction->setIcon(FilePath::instance()->icon("actions", "dialog-close"));
QObject::connect(closeAction, SIGNAL(triggered(bool)), q, SLOT(animatedHide()));