File indexing completed on 2025-01-19 03:55:42
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2008-05-21 0007 * Description : widget to display a list of items 0008 * 0009 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * SPDX-FileCopyrightText: 2008-2010 by Andi Clemens <andi dot clemens at googlemail dot com> 0011 * SPDX-FileCopyrightText: 2009-2010 by Luka Renko <lure at kubuntu dot org> 0012 * 0013 * SPDX-License-Identifier: GPL-2.0-or-later 0014 * 0015 * ============================================================ */ 0016 0017 #ifndef DIGIKAM_DITEMS_LIST_P_H 0018 #define DIGIKAM_DITEMS_LIST_P_H 0019 0020 #include "ditemslist.h" 0021 0022 // Qt includes 0023 0024 #include <QDragEnterEvent> 0025 #include <QFileInfo> 0026 #include <QGridLayout> 0027 #include <QGroupBox> 0028 #include <QMimeData> 0029 #include <QHeaderView> 0030 #include <QLabel> 0031 #include <QPainter> 0032 #include <QPushButton> 0033 #include <QUrl> 0034 #include <QTimer> 0035 #include <QFile> 0036 #include <QPointer> 0037 #include <QXmlStreamAttributes> 0038 #include <QString> 0039 #include <QStandardPaths> 0040 #include <QIcon> 0041 #include <QApplication> 0042 #include <QStyle> 0043 0044 // KDE includes 0045 0046 #include <klocalizedstring.h> 0047 #include <ksharedconfig.h> 0048 #include <kconfiggroup.h> 0049 0050 // Local includes 0051 0052 #include "drawdecoder.h" 0053 #include "imagedialog.h" 0054 #include "digikam_debug.h" 0055 #include "dlayoutbox.h" 0056 #include "dfiledialog.h" 0057 #include "thumbnailloadthread.h" 0058 #include "dworkingpixmap.h" 0059 0060 namespace Digikam 0061 { 0062 0063 class Q_DECL_HIDDEN CtrlButton : public QPushButton 0064 { 0065 Q_OBJECT 0066 0067 public: 0068 0069 explicit CtrlButton(const QIcon& icon, QWidget* parent = nullptr) 0070 : QPushButton(parent) 0071 { 0072 const int btnSize = 32; 0073 0074 setMinimumSize(btnSize, btnSize); 0075 setMaximumSize(btnSize, btnSize); 0076 setIcon(icon); 0077 } 0078 0079 ~CtrlButton() override 0080 { 0081 } 0082 }; 0083 0084 } // namespace Digikam 0085 0086 #endif // DIGIKAM_DITEMS_LIST_P_H