]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/viewpropsprogressinfo.h
a bit ugly, but the migration to QList<KFileItem> has to be incremental...
[dolphin.git] / src / viewpropsprogressinfo.h
index ac591e6bcd681a7f46cd149690f867ceb2f127a4..1d8b42f62847f58f4ecbb9a7109942b1db15a860 100644 (file)
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
  ***************************************************************************/
 #ifndef VIEWPROPSPROGRESSINFO_H
 #define VIEWPROPSPROGRESSINFO_H
 
 #include <kdialog.h>
 #include <kio/directorysizejob.h>
+#include <kurl.h>
 
 class ApplyViewPropsJob;
 class KJob;
-class KUrl;
 class QLabel;
 class QProgressBar;
 class QTimer;
@@ -52,18 +52,21 @@ public:
      */
     ViewPropsProgressInfo(QWidget* parent,
                           const KUrl& dir,
-                          const ViewProperties* viewProps);
+                          const ViewProperties& viewProps);
 
     virtual ~ViewPropsProgressInfo();
 
+protected:
+    virtual void closeEvent(QCloseEvent* event);
+
 private slots:
     void updateProgress();
     void applyViewProperties();
     void cancelApplying();
 
 private:
-    const KUrl& m_dir;
-    const ViewProperties* m_viewProps;
+    KUrl m_dir;
+    ViewProperties* m_viewProps;
 
     QLabel* m_label;
     QProgressBar* m_progressBar;