mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 22:40:36 -04:00
added widget for group selection. Used it in share dialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-FileSharingPermissions@5761 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
bd37e78884
commit
ccd08df35d
8 changed files with 99 additions and 55 deletions
|
@ -89,6 +89,15 @@ FileStorageFlags GroupFlagsWidget::flags() const
|
|||
return flags ;
|
||||
}
|
||||
|
||||
void GroupFlagsWidget::setFlags(FileStorageFlags flags)
|
||||
{
|
||||
for(int i=0;i<4;++i)
|
||||
{
|
||||
_buttons[i]->setChecked(flags & _flags[i]) ;
|
||||
update_button_state(_buttons[i]->isChecked(),i) ;
|
||||
}
|
||||
}
|
||||
|
||||
void GroupFlagsWidget::update_button_state(bool b,int button_id)
|
||||
{
|
||||
if(b)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue