digiKam
showfotofolderviewtooltip.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 : Tool tip for Showfoto folder-view item.
8  *
9  * Copyright (C) 2021-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef SHOWFOTO_FOLDER_VIEW_TOOL_TIP_H
25 #define SHOWFOTO_FOLDER_VIEW_TOOL_TIP_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QRect>
31 #include <QModelIndex>
32 
33 // Local includes
34 
35 #include "ditemtooltip.h"
36 
37 using namespace Digikam;
38 
39 namespace ShowFoto
40 {
41 
42 class ShowfotoFolderViewList;
43 
45 {
46  Q_OBJECT
47 
48 public:
49 
51  ~ShowfotoFolderViewToolTip() override;
52 
53  void setIndex(const QModelIndex& index);
54 
55 private:
56 
57  QRect repositionRect() override;
58  QString tipContents() override;
59 
60 private:
61 
62  class Private;
63  Private* const d;
64 };
65 
66 } // namespace ShowFoto
67 
68 #endif // SHOWFOTO_FOLDER_VIEW_TOOL_TIP_H
Definition: ditemtooltip.h:75
Definition: showfotofolderviewlist.h:44
Definition: showfotofolderviewtooltip.h:45
Definition: datefolderview.cpp:43
Definition: showfotofolderviewbar.cpp:52