mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-07 05:42:19 -04:00
added button to show the share manager from LocalSharedFilesDialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-ImprovedGUI@6113 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d8217e5f53
commit
c7aa08f03f
3 changed files with 20 additions and 0 deletions
|
@ -35,6 +35,7 @@
|
||||||
#include "AddLinksDialog.h"
|
#include "AddLinksDialog.h"
|
||||||
#endif
|
#endif
|
||||||
#include "RetroShareLink.h"
|
#include "RetroShareLink.h"
|
||||||
|
#include "ShareManager.h"
|
||||||
#include "RemoteDirModel.h"
|
#include "RemoteDirModel.h"
|
||||||
#include "ShareDialog.h"
|
#include "ShareDialog.h"
|
||||||
#include "common/PeerDefs.h"
|
#include "common/PeerDefs.h"
|
||||||
|
@ -196,6 +197,7 @@ LocalSharedFilesDialog::LocalSharedFilesDialog(QWidget *parent)
|
||||||
//
|
//
|
||||||
changeCurrentViewModel(ui.viewType_CB->currentIndex()) ;
|
changeCurrentViewModel(ui.viewType_CB->currentIndex()) ;
|
||||||
|
|
||||||
|
connect(ui.addShares_PB, SIGNAL(clicked()), this, SLOT(addShares()));
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoteSharedFilesDialog::RemoteSharedFilesDialog(QWidget *parent)
|
RemoteSharedFilesDialog::RemoteSharedFilesDialog(QWidget *parent)
|
||||||
|
@ -213,6 +215,12 @@ RemoteSharedFilesDialog::RemoteSharedFilesDialog(QWidget *parent)
|
||||||
//
|
//
|
||||||
changeCurrentViewModel(ui.viewType_CB->currentIndex()) ;
|
changeCurrentViewModel(ui.viewType_CB->currentIndex()) ;
|
||||||
|
|
||||||
|
ui.addShares_PB->hide() ;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LocalSharedFilesDialog::addShares()
|
||||||
|
{
|
||||||
|
ShareManager::showYourself();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SharedFilesDialog::hideEvent(QHideEvent *)
|
void SharedFilesDialog::hideEvent(QHideEvent *)
|
||||||
|
|
|
@ -149,6 +149,7 @@ class LocalSharedFilesDialog : public SharedFilesDialog
|
||||||
virtual void showProperColumns() ;
|
virtual void showProperColumns() ;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
void addShares();
|
||||||
void createCollectionFile();
|
void createCollectionFile();
|
||||||
void checkUpdate() ;
|
void checkUpdate() ;
|
||||||
void editSharePermissions();
|
void editSharePermissions();
|
||||||
|
|
|
@ -292,6 +292,17 @@ border-image: url(:/images/closepressed.png)
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="addShares_PB">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="images.qrc">
|
||||||
|
<normaloff>:/images/add-share24.png</normaloff>:/images/add-share24.png</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue