Add custom icons when merging. (#1008)

* Adding missing custom icons on merge.
* qDebug when adding icon
* Adding test for merge custom icons.
This commit is contained in:
louib authored and GitHub committed 2017-10-07 10:40:29 -04:00
1 parent 0d5fec6dfc
commit 242faa138b
7 files changed
+33 -18

No files matched your search

-11
View File
@@ -41,7 +41,6 @@ Metadata::Metadata(QObject* parent)
m_data.protectPassword = true;
m_data.protectUrl = false;
m_data.protectNotes = false;
// m_data.autoEnableVisualHiding = false;
QDateTime now = QDateTime::currentDateTimeUtc();
m_data.nameChanged = now;
@@ -158,11 +157,6 @@ bool Metadata::protectNotes() const
return m_data.protectNotes;
}
/*bool Metadata::autoEnableVisualHiding() const
{
return m_autoEnableVisualHiding;
}*/
QImage Metadata::customIcon(const Uuid& uuid) const
{
return m_customIcons.value(uuid);
@@ -376,11 +370,6 @@ void Metadata::setProtectNotes(bool value)
set(m_data.protectNotes, value);
}
/*void Metadata::setAutoEnableVisualHiding(bool value)
{
set(m_autoEnableVisualHiding, value);
}*/
void Metadata::addCustomIcon(const Uuid& uuid, const QImage& icon)
{
Q_ASSERT(!uuid.isNull());