mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-04 21:17:43 +03:00
Move icon handling from Resources to gui/Icons (#5506)
This commit is contained in:
parent
ba8611cf4c
commit
af4ecb4aa1
39 changed files with 411 additions and 325 deletions
|
@ -24,9 +24,9 @@
|
|||
#include <QDir>
|
||||
|
||||
#include "core/Config.h"
|
||||
#include "core/Resources.h"
|
||||
#include "entry/EntryAttachmentsModel.h"
|
||||
#include "gui/Clipboard.h"
|
||||
#include "gui/Icons.h"
|
||||
#if defined(WITH_XC_KEESHARE)
|
||||
#include "keeshare/KeeShare.h"
|
||||
#endif
|
||||
|
@ -48,11 +48,11 @@ EntryPreviewWidget::EntryPreviewWidget(QWidget* parent)
|
|||
m_ui->setupUi(this);
|
||||
|
||||
// Entry
|
||||
m_ui->entryTotpButton->setIcon(resources()->icon("chronometer"));
|
||||
m_ui->entryCloseButton->setIcon(resources()->icon("dialog-close"));
|
||||
m_ui->togglePasswordButton->setIcon(resources()->onOffIcon("password-show"));
|
||||
m_ui->toggleEntryNotesButton->setIcon(resources()->onOffIcon("password-show"));
|
||||
m_ui->toggleGroupNotesButton->setIcon(resources()->onOffIcon("password-show"));
|
||||
m_ui->entryTotpButton->setIcon(icons()->icon("chronometer"));
|
||||
m_ui->entryCloseButton->setIcon(icons()->icon("dialog-close"));
|
||||
m_ui->togglePasswordButton->setIcon(icons()->onOffIcon("password-show"));
|
||||
m_ui->toggleEntryNotesButton->setIcon(icons()->onOffIcon("password-show"));
|
||||
m_ui->toggleGroupNotesButton->setIcon(icons()->onOffIcon("password-show"));
|
||||
|
||||
m_ui->entryAttachmentsWidget->setReadOnly(true);
|
||||
m_ui->entryAttachmentsWidget->setButtonsVisible(false);
|
||||
|
@ -83,7 +83,7 @@ EntryPreviewWidget::EntryPreviewWidget(QWidget* parent)
|
|||
});
|
||||
|
||||
// Group
|
||||
m_ui->groupCloseButton->setIcon(resources()->icon("dialog-close"));
|
||||
m_ui->groupCloseButton->setIcon(icons()->icon("dialog-close"));
|
||||
connect(m_ui->groupCloseButton, SIGNAL(clicked()), SLOT(hide()));
|
||||
connect(m_ui->groupTabWidget, SIGNAL(tabBarClicked(int)), SLOT(updateTabIndexes()), Qt::QueuedConnection);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue