From c5963017115e630c52cf6380b63266c9963568de Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 20 Nov 2010 16:43:40 +0100 Subject: Added support for mounting cd/dvds DVDs or CDs can be mounted under *NIX like OS now. It still eludes me how to refresh a directory from a QFileSystemModel when it's mounted. Maybe it's a qt bug... --- filesystemwidget.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'filesystemwidget.h') diff --git a/filesystemwidget.h b/filesystemwidget.h index cf8774e..b04feca 100644 --- a/filesystemwidget.h +++ b/filesystemwidget.h @@ -35,11 +35,13 @@ class FilesystemWidget : public QWidget { QFileSystemModel *dirModel() { return mModel; }; const QString windowTitle() const { return mWindowTitle; }; PictureViewer *pictureViewer() { return mPicViewer; }; + bool isMounted(); signals: void windowTitle(const QString &); void statusbarMessage(const QString &); void newTemplate(const QString &); + void mounted(bool); public slots: void directoryChanged(const QModelIndex &selected, const QModelIndex &); @@ -56,6 +58,7 @@ class FilesystemWidget : public QWidget { void playSelected(const QString &player = QString()); void readSettings(); void writeSettings(); + void dvdMount(); private slots: void doRenameFile(); @@ -79,7 +82,6 @@ class FilesystemWidget : public QWidget { MessageDialog *mRenameDialog; QString mTemplate; qint64 mSize; - QAction *mRefreshAction; PictureViewer *mPicViewer; QString mLastDir; }; -- cgit v1.2.3-70-g09d2