mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-06 05:14:21 -04:00
fixed forcecheck own files. Removed some dead code.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-ImprovedGUI@6127 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
24f4f38f80
commit
7715d86e8f
1 changed files with 1 additions and 66 deletions
|
@ -97,7 +97,6 @@ SharedFilesDialog::SharedFilesDialog(RetroshareDirModel *_tree_model,RetroshareD
|
|||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
connect(ui.checkButton, SIGNAL(clicked()), this, SLOT(forceCheck()));
|
||||
//== connect(ui.localButton, SIGNAL(toggled(bool)), this, SLOT(showFrame(bool)));
|
||||
//== connect(ui.remoteButton, SIGNAL(toggled(bool)), this, SLOT(showFrameRemote(bool)));
|
||||
//== connect(ui.splittedButton, SIGNAL(toggled(bool)), this, SLOT(showFrameSplitted(bool)));
|
||||
|
@ -124,23 +123,6 @@ SharedFilesDialog::SharedFilesDialog(RetroshareDirModel *_tree_model,RetroshareD
|
|||
flat_proxyModel->setSortRole(RetroshareDirModel::SortRole);
|
||||
flat_proxyModel->sort(0);
|
||||
|
||||
//== localModel = new TreeStyle_RDM(false);
|
||||
//==
|
||||
//== localProxyModel = new SFDSortFilterProxyModel(localModel, this);
|
||||
//== localProxyModel->setDynamicSortFilter(true);
|
||||
//== localProxyModel->setSourceModel(localModel);
|
||||
//== localProxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
|
||||
//== localProxyModel->setSortRole(RetroshareDirModel::SortRole);
|
||||
//== localProxyModel->sort(0);
|
||||
|
||||
//== ui.dirTreeView->setModel(localProxyModel);
|
||||
|
||||
//== connect( ui.dirTreeView, SIGNAL( collapsed(const QModelIndex & ) ), localModel, SLOT( collapsed(const QModelIndex & ) ) );
|
||||
//== connect( ui.dirTreeView, SIGNAL( expanded(const QModelIndex & ) ), localModel, SLOT( expanded(const QModelIndex & ) ) );
|
||||
|
||||
//== connect( localModel, SIGNAL( layoutAboutToBeChanged() ), ui.localDirTreeView, SLOT( reset() ) );
|
||||
//== connect( localModel, SIGNAL( layoutChanged() ), ui.localDirTreeView, SLOT( update() ) );
|
||||
|
||||
connect(ui.filterClearButton, SIGNAL(clicked()), this, SLOT(clearFilter()));
|
||||
connect(ui.filterStartButton, SIGNAL(clicked()), this, SLOT(startFilter()));
|
||||
connect(ui.filterPatternLineEdit, SIGNAL(returnPressed()), this, SLOT(startFilter()));
|
||||
|
@ -198,6 +180,7 @@ LocalSharedFilesDialog::LocalSharedFilesDialog(QWidget *parent)
|
|||
changeCurrentViewModel(ui.viewType_CB->currentIndex()) ;
|
||||
|
||||
connect(ui.addShares_PB, SIGNAL(clicked()), this, SLOT(addShares()));
|
||||
connect(ui.checkButton, SIGNAL(clicked()), this, SLOT(forceCheck()));
|
||||
}
|
||||
|
||||
RemoteSharedFilesDialog::RemoteSharedFilesDialog(QWidget *parent)
|
||||
|
@ -811,54 +794,6 @@ LocalSharedFilesDialog::tryToAddNewAssotiation()
|
|||
}
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
/**
|
||||
Toggles the Splitted, Remote and Local View on and off*/
|
||||
|
||||
//== void SharedFilesDialog::showFrame(bool show)
|
||||
//== {
|
||||
//== if (show) {
|
||||
//== ui.localframe->setVisible(true);
|
||||
//== ui.remoteframe->setVisible(false);
|
||||
//==
|
||||
//== ui.localButton->setChecked(true);
|
||||
//==
|
||||
//== ui.remoteButton->setChecked(false);
|
||||
//== ui.splittedButton->setChecked(false);
|
||||
//==
|
||||
//== ui.titleBarLabel->setText( tr("<strong>My Shared Files</strong>"));
|
||||
//== }
|
||||
//== }
|
||||
//==
|
||||
//== void SharedFilesDialog::showFrameRemote(bool show)
|
||||
//== {
|
||||
//== if (show) {
|
||||
//== ui.remoteframe->setVisible(true);
|
||||
//== ui.localframe->setVisible(false);
|
||||
//==
|
||||
//== ui.remoteButton->setChecked(true);
|
||||
//== ui.localButton->setChecked(false);
|
||||
//== ui.splittedButton->setChecked(false);
|
||||
//==
|
||||
//== ui.titleBarLabel->setText( tr("<strong>Friends Files</strong>"));
|
||||
//== }
|
||||
//== }
|
||||
//==
|
||||
//== void SharedFilesDialog::showFrameSplitted(bool show)
|
||||
//== {
|
||||
//== if (show) {
|
||||
//== ui.remoteframe->setVisible(true);
|
||||
//== ui.localframe->setVisible(true);
|
||||
//==
|
||||
//== ui.splittedButton->setChecked(true);
|
||||
//==
|
||||
//== ui.localButton->setChecked(false);
|
||||
//== ui.remoteButton->setChecked(false);
|
||||
//==
|
||||
//== ui.titleBarLabel->setText( tr("<strong>Files</strong>"));
|
||||
//== }
|
||||
//== }
|
||||
|
||||
void SharedFilesDialog::indicatorChanged(int index)
|
||||
{
|
||||
static uint32_t correct_indicator[4] = { IND_ALWAYS,IND_LAST_DAY,IND_LAST_WEEK,IND_LAST_MONTH } ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue