mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 01:55:19 -04:00
* 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:
parent
78fe71b2f4
commit
60244f6f7f
3 changed files with 83 additions and 43 deletions
|
@ -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")));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue