File indexing completed on 2025-04-27 03:57:26

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2015-08-17
0007  * Description : Helper class for Image Description Editor Tab
0008  *
0009  * SPDX-FileCopyrightText: 2015 by Veaceslav Munteanu <veaceslav dot munteanu90 at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #include "disjointmetadata_p.h"
0016 
0017 namespace Digikam
0018 {
0019 
0020 DisjointMetadata::Private::Private()
0021 {
0022 }
0023 
0024 DisjointMetadata::Private::Private(const DisjointMetadataDataFields& other)
0025     : DisjointMetadataDataFields(other)
0026 {
0027 }
0028 
0029 DisjointMetadata::Private::Private(const Private& other)
0030     : DisjointMetadataDataFields(other)
0031 {
0032 }
0033 
0034 void DisjointMetadata::Private::makeConnections(DisjointMetadata* const q)
0035 {
0036     QObject::connect(TagsCache::instance(), SIGNAL(tagDeleted(int)),
0037                      q, SLOT(slotTagDeleted(int)),
0038                      Qt::DirectConnection);
0039 
0040     QObject::connect(CoreDbAccess::databaseWatch(), SIGNAL(databaseChanged()),
0041                      q, SLOT(slotInvalidate()));
0042 }
0043 
0044 } // namespace Digikam