digiKam
Loading...
Searching...
No Matches
abstractcountingalbumtreeview.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2009-03-25
7 * Description : Tree View for album models
8 *
9 * SPDX-FileCopyrightText: 2009-2010 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10 * SPDX-FileCopyrightText: 2010-2011 by Andi Clemens <andi dot clemens at gmail dot com>
11 * SPDX-FileCopyrightText: 2009-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
12 *
13 * SPDX-License-Identifier: GPL-2.0-or-later
14 *
15 * ============================================================ */
16
17#pragma once
18
19// Local includes
20
22
23namespace Digikam
24{
25
27{
28 Q_OBJECT
29
30public:
31
32 explicit AbstractCountingAlbumTreeView(QWidget* const parent, Flags flags);
33
34protected:
35
37 void setAlbumFilterModel(AlbumFilterModel* const filterModel);
38
39 void rowsInserted(const QModelIndex& parent, int start, int end) override;
40
41private Q_SLOTS:
42
43 void slotCollapsed(const QModelIndex& index);
44 void slotExpanded(const QModelIndex& index);
45 void setShowCountFromSettings();
46 void updateShowCountState(const QModelIndex& index, bool recurse);
47
48private:
49
50 void init();
51};
52
53} // namespace Digikam
Definition abstractalbumtreeview.h:53
Definition abstractalbummodel.h:266
Definition abstractcountingalbumtreeview.h:27
void setAlbumModel(AbstractCountingAlbumModel *const model)
Definition abstractcountingalbumtreeview.cpp:52
void setAlbumFilterModel(AlbumFilterModel *const filterModel)
Definition abstractcountingalbumtreeview.cpp:87
void rowsInserted(const QModelIndex &parent, int start, int end) override
Definition abstractcountingalbumtreeview.cpp:133
Definition albumfiltermodel.h:35
Definition datefolderview.cpp:34