mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 14:41:04 -04:00
added a dialog to edit banned files
This commit is contained in:
parent
50e03a539c
commit
e17c4d0e40
9 changed files with 164 additions and 6 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include "rshare.h"
|
||||
#include "SearchDialog.h"
|
||||
#include "gui/FileTransfer/BannedFilesDialog.h"
|
||||
#include "gui/RSHumanReadableDelegate.h"
|
||||
#include "gui/RetroShareLink.h"
|
||||
#include "retroshare-gui/RsAutoUpdatePage.h"
|
||||
|
@ -118,6 +119,7 @@ SearchDialog::SearchDialog(QWidget *parent)
|
|||
connect( ui.searchResultWidget, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( searchResultWidgetCustomPopupMenu( QPoint ) ) );
|
||||
|
||||
connect( ui.searchSummaryWidget, SIGNAL( customContextMenuRequested( QPoint ) ), this, SLOT( searchSummaryWidgetCustomPopupMenu( QPoint ) ) );
|
||||
connect( ui.showBannedFiles_TB, SIGNAL( clicked() ), this, SLOT( openBannedFiles() ) );
|
||||
|
||||
connect( ui.lineEdit, SIGNAL( returnPressed ( void ) ), this, SLOT( searchKeywords( void ) ) );
|
||||
connect( ui.lineEdit, SIGNAL( textChanged ( const QString& ) ), this, SLOT( checkText( const QString& ) ) );
|
||||
|
@ -443,11 +445,17 @@ void SearchDialog::ban()
|
|||
|
||||
rsFiles -> banFile( hash, (item->text(SR_NAME_COL)).toUtf8().constData() , (item->text(SR_SIZE_COL)).toULongLong());
|
||||
|
||||
ui.searchResultWidget->takeItem(item) ;
|
||||
ui.searchResultWidget->takeTopLevelItem(ui.searchResultWidget->indexOfTopLevelItem(item)) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void SearchDialog::openBannedFiles()
|
||||
{
|
||||
BannedFilesDialog d ;
|
||||
d.exec();
|
||||
}
|
||||
|
||||
void SearchDialog::collCreate()
|
||||
{
|
||||
std::vector <DirDetails> dirVec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue