digiKam
showfotofolderviewbookmarkitem.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 : Showfoto folder view bookmarks item
8  *
9  * Copyright (C) 2021-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 SHOWFOTO_FOLDER_VIEW_BOOKMARK_ITEM_H
25 #define SHOWFOTO_FOLDER_VIEW_BOOKMARK_ITEM_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QTreeWidget>
31 #include <QTreeWidgetItem>
32 
33 namespace ShowFoto
34 {
35 
36 class ShowfotoFolderViewBookmarkItem : public QTreeWidgetItem
37 {
38 
39 public:
40 
41  explicit ShowfotoFolderViewBookmarkItem(QTreeWidgetItem* const parent);
43 
44  void setPath(const QString&);
45  QString path() const;
46 
47 private:
48 
49  QString m_path;
50 
51  Q_DISABLE_COPY(ShowfotoFolderViewBookmarkItem)
52 };
53 
54 } // namespace ShowFoto
55 
56 #endif // SHOWFOTO_FOLDER_VIEW_BOOKMARK_ITEM_H
Definition: showfotofolderviewbookmarkitem.h:37
QString path() const
Definition: showfotofolderviewbookmarkitem.cpp:49
~ShowfotoFolderViewBookmarkItem() override
Definition: showfotofolderviewbookmarkitem.cpp:40
void setPath(const QString &)
Definition: showfotofolderviewbookmarkitem.cpp:44
ShowfotoFolderViewBookmarkItem(QTreeWidgetItem *const parent)
Definition: showfotofolderviewbookmarkitem.cpp:33
Definition: showfotofolderviewbar.cpp:52