digiKam
Loading...
Searching...
No Matches
showfotofolderviewundo.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 undo command.
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 <QUndoCommand>
20#include <QString>
21
22// Local includes
23
25
26namespace ShowFoto
27{
28
29class ShowfotoFolderViewUndo : public QUndoCommand
30{
31
32public:
33
35 const QString& newPath);
37
38 QString undoPath() const;
39
40 void undo();
41 void redo();
42
43private:
44
45 class Private;
46 Private* const d = nullptr;
47};
48
49} // namespace ShowFoto
Definition showfotofolderviewsidebar.h:42
Definition showfotofolderviewundo.h:30
void redo()
Definition showfotofolderviewundo.cpp:62
void undo()
Definition showfotofolderviewundo.cpp:57
QString undoPath() const
Definition showfotofolderviewundo.cpp:52
~ShowfotoFolderViewUndo()
Definition showfotofolderviewundo.cpp:47
Definition showfotofolderviewbar.cpp:43