diff options
author | Arno <am@disconnect.de> | 2010-05-14 14:52:56 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-05-14 14:52:56 +0200 |
commit | 8557681bb922613603eae641e88746eaa16914a4 (patch) | |
tree | 2b025d0d67a8c262991cc6d9f081b840ae8b0b7c /filesystemwidget.cpp | |
parent | 8a324c06caff00947b7d9a8b0b0b977073500c80 (diff) | |
download | SheMov-8557681bb922613603eae641e88746eaa16914a4.tar.gz SheMov-8557681bb922613603eae641e88746eaa16914a4.tar.bz2 SheMov-8557681bb922613603eae641e88746eaa16914a4.zip |
Cleanup archive extraction
Removed the code for archive extraction. Never used it, never liked it
and really never worked properly.
Diffstat (limited to 'filesystemwidget.cpp')
-rw-r--r-- | filesystemwidget.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/filesystemwidget.cpp b/filesystemwidget.cpp index 29a8e6e..8e27928 100644 --- a/filesystemwidget.cpp +++ b/filesystemwidget.cpp @@ -29,7 +29,6 @@ #include "filesystemfileproxy.h" #include "helper.h" #include "messagedialog.h" -#include "extractordialog.h" #include "archiveeditdialog.h" FilesystemWidget::FilesystemWidget(QWidget *parent) : QWidget(parent) { @@ -326,21 +325,6 @@ void FilesystemWidget::setTemplate(){ emit newTemplate(mTemplate); } -void FilesystemWidget::extract(const QString &destDir){ - QModelIndex idx = mFileView->currentIndex(); - if(idx.column() != 0){ - idx = mFileView->model()->index(idx.row(), 0); - } - QSortFilterProxyModel *proxy = static_cast<QSortFilterProxyModel*>(mFileView->model()); - QModelIndex real = proxy->mapToSource(idx); - QFileInfo info = mModel->fileInfo(real); - if(info.isDir()){ - return; - } - ExtractorDialog dlg(info.absoluteFilePath(), destDir, this); - dlg.exec(); -} - void FilesystemWidget::archiveFiles(){ QModelIndexList selected = fileView()->selectionModel()->selectedRows(); if(selected.isEmpty()){ @@ -358,11 +342,6 @@ void FilesystemWidget::archiveFiles(){ mAEDialog->activateWindow(); } -/*void FilesystemWidget::refreshDir(const QString &dir){ - QModelIndex idx = mModel->index(dir); - mModel->refresh(idx); -}*/ - void FilesystemWidget::playSelected(const QString &player){ QStringList files = selectedFiles(); if(files.isEmpty()){ |