digiKam
showfotostackviewtooltip.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-09-27
7  * Description : Tool tip for Showfoto stack 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_STACK_VIEW_TOOL_TIP_H
25 #define SHOWFOTO_STACK_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 #include "showfotoiteminfo.h"
37 
38 using namespace Digikam;
39 
40 namespace ShowFoto
41 {
42 
43 class ShowfotoStackViewList;
44 
46 {
47  Q_OBJECT
48 
49 public:
50 
51  explicit ShowfotoStackViewToolTip(ShowfotoStackViewList* const view);
52  ~ShowfotoStackViewToolTip() override;
53 
54  void setIndex(const QModelIndex& index);
55 
56 private:
57 
58  QRect repositionRect() override;
59  QString tipContents() override;
60 
61 private:
62 
63  class Private;
64  Private* const d;
65 };
66 
67 } // namespace ShowFoto
68 
69 #endif // SHOWFOTO_STACK_VIEW_TOOL_TIP_H
Definition: ditemtooltip.h:75
Definition: showfotostackviewlist.h:46
Definition: showfotostackviewtooltip.h:46
Definition: datefolderview.cpp:43
Definition: showfotofolderviewbar.cpp:52