summaryrefslogtreecommitdiffstats
path: root/filesystemwidget.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-11-20 16:43:40 +0100
committerArno <am@disconnect.de>2010-11-20 16:43:40 +0100
commitc5963017115e630c52cf6380b63266c9963568de (patch)
treed62ef40ab9a963d7384b38ed6ebdb890a729a7a6 /filesystemwidget.h
parent3411f7ef7f44a3933aef256d26954e323e2b2175 (diff)
downloadSheMov-c5963017115e630c52cf6380b63266c9963568de.tar.gz
SheMov-c5963017115e630c52cf6380b63266c9963568de.tar.bz2
SheMov-c5963017115e630c52cf6380b63266c9963568de.zip
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...
Diffstat (limited to 'filesystemwidget.h')
-rw-r--r--filesystemwidget.h4
1 files changed, 3 insertions, 1 deletions
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;
};