mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
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:
parent
c30e0c071e
commit
92df7037b2
6 changed files with 488 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue