diff options
author | am <am@f440f766-f032-0410-8965-dc7d17de2ca0> | 2009-09-16 17:49:38 +0000 |
---|---|---|
committer | am <am@f440f766-f032-0410-8965-dc7d17de2ca0> | 2009-09-16 17:49:38 +0000 |
commit | 51257c29633432c4ecc418fd07726b798508c613 (patch) | |
tree | 07796fafba1b3a19a9b14e159a49569d3f798525 /filesystemwidget.cpp | |
parent | 5e86b6d1cff1d9baacad8c34b062267a382b1990 (diff) | |
download | SheMov-51257c29633432c4ecc418fd07726b798508c613.tar.gz SheMov-51257c29633432c4ecc418fd07726b798508c613.tar.bz2 SheMov-51257c29633432c4ecc418fd07726b798508c613.zip |
-Removed some qDebug() statements
-Removed filtering of extractor output (not tested)
-Changed SelectionMode of filemanager to ExtendedSelection
-Fixed bug in SheMov::setFreeFS
-Size of selected files is now shown in filemanager
git-svn-id: file:///var/svn/repos2/shemov/trunk@407 f440f766-f032-0410-8965-dc7d17de2ca0
Diffstat (limited to 'filesystemwidget.cpp')
-rw-r--r-- | filesystemwidget.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/filesystemwidget.cpp b/filesystemwidget.cpp index 4f4e452..a944c13 100644 --- a/filesystemwidget.cpp +++ b/filesystemwidget.cpp @@ -60,7 +60,7 @@ FilesystemWidget::FilesystemWidget(QWidget *parent) : QWidget(parent) { mFileView->setSortingEnabled(true); mFileView->sortByColumn(0, Qt::AscendingOrder); mFileView->setItemsExpandable(false); - mFileView->setSelectionMode(QAbstractItemView::MultiSelection); + mFileView->setSelectionMode(QAbstractItemView::ExtendedSelection); mFileView->setEditTriggers(QAbstractItemView::NoEditTriggers); QString title = QString(tr("%1 - Rename file")).arg(qApp->applicationName()); @@ -125,15 +125,14 @@ void FilesystemWidget::setArchiveDialog(ArchiveEditDialog *dlg){ mAEDialog->setDirModel(mModel); } -void FilesystemWidget::directoryChanged(const QModelIndex &selected, const QModelIndex &deselected){ +void FilesystemWidget::directoryChanged(const QModelIndex &selected, const QModelIndex & /* deselected */){ QModelIndex real = mDirProxy->mapToSource(selected); if(!real.isValid()){ return; } mDirEdit->setText(mModel->filePath(real)); setWindowTitle(mModel->filePath(real)); - QModelIndex oldSelected = mDirProxy->mapToSource(deselected); - mFileView->selectionModel()->setCurrentIndex(mFileProxy->mapFromSource(oldSelected), QItemSelectionModel::NoUpdate); + mFileView->selectionModel()->clear(); mFileView->setRootIndex(mFileProxy->mapFromSource(real)); } |