Added ShareDialog for ShareManager

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2693 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-04-08 16:33:10 +00:00
parent c30e0c071e
commit 92df7037b2
6 changed files with 488 additions and 1 deletions

View file

@ -21,6 +21,7 @@
#include "ShareManager.h"
#include "rsiface/rsfiles.h"
#include "ShareDialog.h"
#include <QContextMenuEvent>
#include <QMenu>
@ -47,7 +48,7 @@ ShareManager::ShareManager(QWidget *parent, Qt::WFlags flags)
ui.setupUi(this);
connect(ui.addButton, SIGNAL(clicked( bool ) ), this , SLOT( addShareDirectory() ) );
connect(ui.addButton, SIGNAL(clicked( bool ) ), this , SLOT( showShareDialog() ) );
connect(ui.removeButton, SIGNAL(clicked( bool ) ), this , SLOT( removeShareDirectory() ) );
connect(ui.closeButton, SIGNAL(clicked()), this, SLOT(close()));
@ -256,3 +257,9 @@ void ShareManager::showEvent(QShowEvent *event)
load();
}
}
void ShareManager::showShareDialog()
{
static ShareDialog *sharedlg = new ShareDialog(this);
sharedlg->show();
}