digiKam
freespacetooltip.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 : 2009-01-19
7  * Description : free space widget tool tip
8  *
9  * Copyright (C) 2009-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_FREE_SPACE_TOOL_TIP_H
25 #define DIGIKAM_FREE_SPACE_TOOL_TIP_H
26 
27 // Local includes
28 
29 #include "ditemtooltip.h"
30 
31 namespace Digikam
32 {
33 
35 {
36  Q_OBJECT
37 
38 public:
39 
40  explicit FreeSpaceToolTip(QWidget* const parent);
41  ~FreeSpaceToolTip() override;
42 
43  void setToolTip(const QString& tip);
44 
45  void show();
46 
47 protected:
48 
49  QRect repositionRect() override;
50  QString tipContents() override;
51 
52 private:
53 
54  class Private;
55  Private* const d;
56 };
57 
58 } // namespace Digikam
59 
60 #endif // DIGIKAM_FREE_SPACE_TOOL_TIP_H
Definition: ditemtooltip.h:75
Definition: freespacetooltip.h:35
FreeSpaceToolTip(QWidget *const parent)
Definition: freespacetooltip.cpp:49
QRect repositionRect() override
Definition: freespacetooltip.cpp:77
void show()
Definition: freespacetooltip.cpp:66
void setToolTip(const QString &tip)
Definition: freespacetooltip.cpp:61
QString tipContents() override
Definition: freespacetooltip.cpp:90
~FreeSpaceToolTip() override
Definition: freespacetooltip.cpp:56
Definition: datefolderview.cpp:43