digiKam
ditemslist_p.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 : 2008-05-21
7  * Description : widget to display a list of items
8  *
9  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2008-2010 by Andi Clemens <andi dot clemens at googlemail dot com>
11  * Copyright (C) 2009-2010 by Luka Renko <lure at kubuntu dot org>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option) 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_DITEMS_LIST_P_H
26 #define DIGIKAM_DITEMS_LIST_P_H
27 
28 #include "ditemslist.h"
29 
30 // Qt includes
31 
32 #include <QDragEnterEvent>
33 #include <QFileInfo>
34 #include <QGridLayout>
35 #include <QGroupBox>
36 #include <QMimeData>
37 #include <QHeaderView>
38 #include <QLabel>
39 #include <QPainter>
40 #include <QPushButton>
41 #include <QUrl>
42 #include <QTimer>
43 #include <QFile>
44 #include <QPointer>
45 #include <QXmlStreamAttributes>
46 #include <QStringRef>
47 #include <QString>
48 #include <QStandardPaths>
49 #include <QIcon>
50 #include <QApplication>
51 #include <QStyle>
52 
53 // KDE includes
54 
55 #include <klocalizedstring.h>
56 #include <ksharedconfig.h>
57 #include <kconfiggroup.h>
58 
59 // Local includes
60 
61 #include "drawdecoder.h"
62 #include "imagedialog.h"
63 #include "digikam_debug.h"
64 #include "dlayoutbox.h"
65 #include "dfiledialog.h"
66 #include "thumbnailloadthread.h"
67 #include "dworkingpixmap.h"
68 
69 namespace Digikam
70 {
71 
72 class Q_DECL_HIDDEN CtrlButton : public QPushButton
73 {
74  Q_OBJECT
75 
76 public:
77 
78  explicit CtrlButton(const QIcon& icon, QWidget* parent = nullptr)
79  : QPushButton(parent)
80  {
81  const int btnSize = 32;
82 
83  setMinimumSize(btnSize, btnSize);
84  setMaximumSize(btnSize, btnSize);
85  setIcon(icon);
86  }
87 
88  ~CtrlButton() override
89  {
90  }
91 };
92 
93 } // namespace Digikam
94 
95 #endif // DIGIKAM_DITEMS_LIST_P_H
Definition: ditemslist_p.h:73
CtrlButton(const QIcon &icon, QWidget *parent=nullptr)
Definition: ditemslist_p.h:78
~CtrlButton() override
Definition: ditemslist_p.h:88
Definition: datefolderview.cpp:43