mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-26 06:26:11 -05:00
Don't fall back to ugly Qt close icon
This commit is contained in:
parent
1f6f7b614c
commit
6e2254c13d
@ -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()));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user