]>
cloud.milkyroute.net Git - dolphin.git/blob - src/settings/viewpropsprogressinfo.h
2 * SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at>
4 * SPDX-License-Identifier: GPL-2.0-or-later
6 #ifndef VIEWPROPSPROGRESSINFO_H
7 #define VIEWPROPSPROGRESSINFO_H
9 #include <kio/directorysizejob.h>
14 class ApplyViewPropsJob
;
21 * @brief Shows the progress information when applying view properties
22 * recursively to a given directory.
24 * It is possible to cancel the applying. In this case the already applied
25 * view properties won't get reverted.
27 class ViewPropsProgressInfo
: public QDialog
33 * @param parent Parent widget of the dialog.
34 * @param dir Directory where the view properties should be applied to
35 * (including sub directories).
36 * @param viewProps View properties for the directory \a dir including its
39 ViewPropsProgressInfo(QWidget
* parent
,
41 const ViewProperties
& viewProps
);
43 ~ViewPropsProgressInfo() override
;
46 void closeEvent(QCloseEvent
* event
) override
;
49 void reject() override
;
52 void updateProgress();
53 void applyViewProperties();
57 ViewProperties
* m_viewProps
;
60 QProgressBar
* m_progressBar
;
62 KIO::DirectorySizeJob
* m_dirSizeJob
;
63 ApplyViewPropsJob
* m_applyViewPropsJob
;