digiKam
overlaywidget.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 : 2012-01-13
7  * Description : progress manager
8  *
9  * Copyright (C) 2007-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2004 by David Faure <faure at kde dot org>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_OVERLAY_WIDGET_H
26 #define DIGIKAM_OVERLAY_WIDGET_H
27 
28 // Local includes
29 
30 #include "dlayoutbox.h"
31 #include "digikam_export.h"
32 
33 class QResizeEvent;
34 class QEvent;
35 
36 namespace Digikam
37 {
38 
46 class DIGIKAM_EXPORT OverlayWidget : public DHBox
47 {
48  Q_OBJECT
49 
50 public:
51 
52  explicit OverlayWidget(QWidget* const alignWidget, QWidget* const parent, const QString& name = QString());
53  ~OverlayWidget() override;
54 
55  QWidget* alignWidget() const;
56  void setAlignWidget(QWidget* const alignWidget);
57 
58 protected:
59 
60  void resizeEvent(QResizeEvent* ev) override;
61  bool eventFilter(QObject* o, QEvent* e) override;
62 
63 private:
64 
65  void reposition();
66 
67 private:
68 
69  QWidget* mAlignWidget;
70 };
71 
72 } // namespace Digikam
73 
74 #endif // DIGIKAM_OVERLAY_WIDGET_H
Definition: dlayoutbox.h:45
Definition: overlaywidget.h:47
Definition: datefolderview.cpp:43