digiKam
Loading...
Searching...
No Matches
showfotofolderviewlist.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 : 2021-08-27
7 * Description : List-view for the Showfoto folder view.
8 *
9 * SPDX-FileCopyrightText: 2021-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// QT includes
18
19#include <QTreeView>
20#include <QMouseEvent>
21#include <QContextMenuEvent>
22#include <QModelIndex>
23
24// Local includes
25
27
28namespace ShowFoto
29{
30
31class ShowfotoFolderViewBar;
32
33class ShowfotoFolderViewList : public QTreeView
34{
35 Q_OBJECT
36
37public:
38
44
52
53public:
54
56 ShowfotoFolderViewBar* const bar);
57 ~ShowfotoFolderViewList() override;
58
59public Q_SLOTS:
60
61 void slotIconSizeChanged(int);
62
63Q_SIGNALS:
64
66
67private:
68
69 void mouseDoubleClickEvent(QMouseEvent*) override;
70 void contextMenuEvent(QContextMenuEvent*) override;
71 void mouseMoveEvent(QMouseEvent*) override;
72 void wheelEvent(QWheelEvent*) override;
73 void keyPressEvent(QKeyEvent*) override;
74 void focusOutEvent(QFocusEvent*) override;
75 void leaveEvent(QEvent*) override;
76
77 void hideToolTip();
78 bool acceptToolTip(const QModelIndex& index) const;
79
80private Q_SLOTS:
81
82 void slotToolTip();
83 void slotOpenInFileManager();
84
85private:
86
87 class Private;
88 Private* const d = nullptr;
89};
90
91} // namespace ShowFoto
Definition showfotofolderviewbar.h:37
Definition showfotofolderviewlist.h:34
~ShowfotoFolderViewList() override
Definition showfotofolderviewlist.cpp:93
void slotIconSizeChanged(int)
Definition showfotofolderviewlist.cpp:122
FolderViewMode
Definition showfotofolderviewlist.h:40
@ ShortView
Definition showfotofolderviewlist.h:41
@ DetailledView
Definition showfotofolderviewlist.h:42
FolderViewRole
Definition showfotofolderviewlist.h:46
@ FileType
Definition showfotofolderviewlist.h:49
@ FileSize
Definition showfotofolderviewlist.h:48
@ FileDate
Modifier date.
Definition showfotofolderviewlist.h:50
@ FileName
Definition showfotofolderviewlist.h:47
Definition showfotofolderviewsidebar.h:42
Definition showfotofolderviewbar.cpp:43