* added doubleclick download feature

* added download Button

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@903 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-01-02 00:09:59 +00:00
parent 78fe71b2f4
commit 60244f6f7f
3 changed files with 83 additions and 43 deletions

View file

@ -73,6 +73,11 @@ SharedFilesDialog::SharedFilesDialog(QWidget *parent)
connect( ui.remoteDirTreeView, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( shareddirtreeviewCostumPopupMenu( QPoint ) ) );
connect( ui.remoteDirTreeView, SIGNAL( doubleClicked(const QModelIndex&)), this, SLOT( downloadRemoteSelected()));
connect( ui.downloadButton, SIGNAL( clicked()), this, SLOT( downloadRemoteSelected()));
/*
connect( ui.remoteDirTreeView, SIGNAL( itemExpanded( QTreeWidgetItem * ) ),
this, SLOT( checkForLocalDirRequest( QTreeWidgetItem * ) ) );
@ -203,6 +208,7 @@ void SharedFilesDialog::downloadRemoteSelected()
QItemSelectionModel *qism = ui.remoteDirTreeView->selectionModel();
model -> downloadSelected(qism->selectedIndexes());
}
@ -470,3 +476,4 @@ void SharedFilesDialog::showFrame(bool show)
ui.frameButton->setIcon(QIcon(tr(":images/show_toolbox_frame.png")));
}
}