mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 11:32:48 -04:00
- Added some performance optimizations in FriendSelectionWidget::peerStatusChanged
- Fixed some ui design git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6442 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
771ae5ba58
commit
cac96b8317
7 changed files with 55 additions and 19 deletions
|
@ -36,13 +36,12 @@ CreateMsgLinkDialog::CreateMsgLinkDialog()
|
|||
|
||||
setAttribute(Qt::WA_DeleteOnClose, false);
|
||||
|
||||
layout()->addWidget( _gpg_selection = new FriendSelectionWidget(this) ) ;
|
||||
QObject::connect(_create_link_PB,SIGNAL(clicked()),this,SLOT(createLink())) ;
|
||||
|
||||
_gpg_selection->setModus(FriendSelectionWidget::MODUS_SINGLE) ;
|
||||
_gpg_selection->setShowType(FriendSelectionWidget::SHOW_NON_FRIEND_GPG | FriendSelectionWidget::SHOW_GPG) ;
|
||||
_gpg_selection->setHeaderText(QObject::tr("Select who can contact you:")) ;
|
||||
_gpg_selection->start() ;
|
||||
friendSelectionWidget->setModus(FriendSelectionWidget::MODUS_SINGLE) ;
|
||||
friendSelectionWidget->setShowType(FriendSelectionWidget::SHOW_NON_FRIEND_GPG | FriendSelectionWidget::SHOW_GPG) ;
|
||||
friendSelectionWidget->setHeaderText(QObject::tr("Select who can contact you:")) ;
|
||||
friendSelectionWidget->start() ;
|
||||
|
||||
layout()->update() ;
|
||||
update() ;
|
||||
|
@ -83,7 +82,7 @@ void CreateMsgLinkDialog::createLink()
|
|||
|
||||
time_t validity_duration = computeValidityDuration() ;
|
||||
FriendSelectionWidget::IdType type ;
|
||||
std::string current_pgp_id = _gpg_selection->selectedId(type) ;
|
||||
std::string current_pgp_id = friendSelectionWidget->selectedId(type) ;
|
||||
|
||||
std::string encrypted_string ;
|
||||
|
||||
|
@ -132,4 +131,3 @@ void CreateMsgLinkDialog::createLink()
|
|||
QMessageBox::information(NULL,tr("Messenging invite created"),tr("Your new messenging chat invite has been copied to clipboard. You can now paste it as a Retroshare link.")) ;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue