Debian Codegraph @

core/showfoto/folderview/showfotofolderviewtooltip.h

raw symbols SCIP
1 /* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2021-08-27
7 * Description : Tool tip for Showfoto folder-view item.
8 *
9 * SPDX-FileCopyrightText: 2021-2026 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 <QString>
20 #include <QRect>
21 #include <QModelIndex>
22
23 // Local includes
24
25 #include "ditemtooltip.h"
26
27 using namespace Digikam;
28
29 namespace ShowFoto
30 {
31
32 class ShowfotoFolderViewList;
33
34 class ShowfotoFolderViewToolTip : public DItemToolTip
35 {
36 Q_OBJECT
37
38 public:
39
40 explicit ShowfotoFolderViewToolTip(ShowfotoFolderViewList* const view);
41 ~ShowfotoFolderViewToolTip() override;
42
43 void setIndex(const QModelIndex& index);
44
45 private:
46
47 QRect repositionRect() override;
48 QString tipContents() override;
49
50 private:
51
52 class Private;
53 Private* const d = nullptr;
54 };
55
56 } // namespace ShowFoto