mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 20:34:25 -04:00
Changed the standard dialog buttons from single buttons to buttonbox to have a standard layout and a standard translation.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5657 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e10ce3ff35
commit
b67f9f88fe
39 changed files with 110 additions and 671 deletions
|
@ -44,8 +44,8 @@ CreateChannel::CreateChannel(QWidget *parent)
|
|||
picture = NULL;
|
||||
|
||||
// connect up the buttons.
|
||||
connect( ui.cancelButton, SIGNAL( clicked ( bool ) ), this, SLOT( cancelChannel( ) ) );
|
||||
connect( ui.createButton, SIGNAL( clicked ( bool ) ), this, SLOT( createChannel( ) ) );
|
||||
connect( ui.buttonBox, SIGNAL(accepted()), this, SLOT(createChannel()));
|
||||
connect( ui.buttonBox, SIGNAL(rejected()), this, SLOT(close()));
|
||||
|
||||
connect( ui.logoButton, SIGNAL(clicked() ), this , SLOT(addChannelLogo()));
|
||||
connect( ui.pubKeyShare_cb, SIGNAL( clicked() ), this, SLOT( setShareList( ) ));
|
||||
|
@ -134,11 +134,6 @@ void CreateChannel::createChannel()
|
|||
close();
|
||||
}
|
||||
|
||||
void CreateChannel::cancelChannel()
|
||||
{
|
||||
close();
|
||||
}
|
||||
|
||||
void CreateChannel::addChannelLogo() // the same function as in EditChanDetails
|
||||
{
|
||||
QPixmap img = misc::getOpenThumbnailedPicture(this, tr("Load channel logo"), 64, 64);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue