mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-15 04:22:27 -04:00
added new frame for the Top of Friendslist.
added menu button "Add" for Add Friend/Create new Profile actions. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1671 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d46e0c4299
commit
e6d2b59ccc
6 changed files with 150 additions and 41 deletions
|
@ -35,8 +35,8 @@
|
|||
#include "msgs/ChanMsgDialog.h"
|
||||
#include "connect/ConfCertDialog.h"
|
||||
#include "profile/ProfileView.h"
|
||||
|
||||
|
||||
#include "GenCertDialog.h"
|
||||
#include "gui/connect/ConnectFriendWizard.h"
|
||||
#include "gui/Preferences/rsharesettings.h"
|
||||
|
||||
#include <iostream>
|
||||
|
@ -164,6 +164,12 @@ PeersDialog::PeersDialog(QWidget *parent)
|
|||
timer->start(500); /* half a second */
|
||||
|
||||
ui.peertreeWidget->sortItems( 1, Qt::AscendingOrder );
|
||||
|
||||
QMenu *menu = new QMenu();
|
||||
menu->addAction(ui.actionAdd_Friend);
|
||||
menu->addSeparator();
|
||||
menu->addAction(ui.actionCreate_new_Profile);
|
||||
ui.menupushButton->setMenu(menu);
|
||||
|
||||
updateAvatar();
|
||||
|
||||
|
@ -1240,4 +1246,22 @@ void PeersDialog::changeAvatarClicked()
|
|||
{
|
||||
|
||||
updateAvatar();
|
||||
}
|
||||
}
|
||||
|
||||
void PeersDialog::on_actionAdd_Friend_activated()
|
||||
{
|
||||
ConnectFriendWizard* connectwiz = new ConnectFriendWizard(this);
|
||||
|
||||
// set widget to be deleted after close
|
||||
connectwiz->setAttribute( Qt::WA_DeleteOnClose, true);
|
||||
|
||||
|
||||
connectwiz->show();
|
||||
}
|
||||
|
||||
void PeersDialog::on_actionCreate_new_Profile_activated()
|
||||
{
|
||||
static GenCertDialog *gencertdialog = new GenCertDialog();
|
||||
gencertdialog->show();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue