]>
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
, const QUrl
&dir
, const ViewProperties
&viewProps
);
41 ~ViewPropsProgressInfo() override
;
44 void closeEvent(QCloseEvent
*event
) override
;
47 void reject() override
;
50 void updateProgress();
51 void applyViewProperties();
55 ViewProperties
*m_viewProps
;
58 QProgressBar
*m_progressBar
;
60 KIO::DirectorySizeJob
*m_dirSizeJob
;
61 ApplyViewPropsJob
*m_applyViewPropsJob
;