digiKam
blackframetooltip.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 : 2020-08-20
7  * Description : black frame list view tool tip
8  *
9  * Copyright (C) 2020-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 DIGIKAM_BLACK_FRAME_TOOL_TIP_H
25 #define DIGIKAM_BLACK_FRAME_TOOL_TIP_H
26 
27 // Local includes
28 
29 #include "ditemtooltip.h"
30 #include "digikam_export.h"
31 
32 class QTreeWidgetItem;
33 class QTreeWidget;
34 
35 namespace Digikam
36 {
37 
38 class DIGIKAM_EXPORT BlackFrameToolTip : public DItemToolTip
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit BlackFrameToolTip(QTreeWidget* const view);
45  ~BlackFrameToolTip() override;
46 
47  void setToolTipString(const QString& tip);
48  void setItem(QTreeWidgetItem* const item);
49 
50  void show();
51 
52 protected:
53 
54  QRect repositionRect() override;
55  QString tipContents() override;
56 
57 private:
58 
59  class Private;
60  Private* const d;
61 };
62 
63 } // namespace Digikam
64 
65 #endif // DIGIKAM_BLACK_FRAME_TOOL_TIP_H
Definition: blackframetooltip.h:39
Definition: ditemtooltip.h:75
Definition: datefolderview.cpp:43