digiKam
Loading...
Searching...
No Matches
showfotofolderviewmodel.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 : 2021-08-27
7 * Description : Showfoto folder view model.
8 *
9 * SPDX-FileCopyrightText: 2021-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// QT includes
18
19#include <QFileSystemModel>
20#include <QStringList>
21
22// Local includes
23
24#include "loadingdescription.h"
25
26using namespace Digikam;
27
28namespace ShowFoto
29{
30
31class ShowfotoFolderViewList;
32
33class ShowfotoFolderViewModel : public QFileSystemModel
34{
35 Q_OBJECT
36
37public:
38
40 ~ShowfotoFolderViewModel() override;
41
42 static int maxIconSize();
43
44 QVariant data(const QModelIndex& index, int role) const override;
45
49 QStringList currentFilesPath() const;
50
51private Q_SLOTS:
52
53 void refreshThumbnails(const LoadingDescription& desc, const QPixmap& pix);
54
55private:
56
57 class Private;
58 Private* const d = nullptr;
59};
60
61} // namespace ShowFoto
Definition loadingdescription.h:35
Definition showfotofolderviewlist.h:34
Definition showfotofolderviewmodel.h:34
QVariant data(const QModelIndex &index, int role) const override
Definition showfotofolderviewmodel.cpp:90
~ShowfotoFolderViewModel() override
Definition showfotofolderviewmodel.cpp:77
static int maxIconSize()
Definition showfotofolderviewmodel.cpp:85
QStringList currentFilesPath() const
Definition showfotofolderviewmodel.cpp:130
Definition datefolderview.cpp:34
Definition showfotofolderviewbar.cpp:43