Move icon handling from Resources to gui/Icons (#5506)

This commit is contained in:
louib
2020-10-05 20:41:00 -04:00
committed by GitHub
parent ba8611cf4c
commit af4ecb4aa1
39 changed files with 411 additions and 325 deletions

View File

@@ -1,6 +1,6 @@
/*
* Copyright (C) 2014 Felix Geyer <debfx@fobos.de>
* Copyright (C) 2019 KeePassXC Team <team@keepassxc.org>
* Copyright (C) 2020 KeePassXC Team <team@keepassxc.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -21,15 +21,15 @@
#include <QRegularExpression>
#include "core/Config.h"
#include "core/Resources.h"
#include "core/Tools.h"
#include "gui/Font.h"
#include "gui/Icons.h"
#include "gui/styles/StateColorPalette.h"
URLEdit::URLEdit(QWidget* parent)
: QLineEdit(parent)
{
const QIcon errorIcon = resources()->icon("dialog-error");
const QIcon errorIcon = icons()->icon("dialog-error");
m_errorAction = addAction(errorIcon, QLineEdit::TrailingPosition);
m_errorAction->setVisible(false);
m_errorAction->setToolTip(tr("Invalid URL"));