mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 12:54:26 -04:00
set a minimum size hint for the friends list in CreateChannel
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3260 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
126a1d4012
commit
225781aa51
1 changed files with 12 additions and 11 deletions
|
@ -33,19 +33,19 @@
|
||||||
CreateChannel::CreateChannel(QWidget *parent)
|
CreateChannel::CreateChannel(QWidget *parent)
|
||||||
: QDialog(parent)
|
: QDialog(parent)
|
||||||
{
|
{
|
||||||
/* Invoke the Qt Designer generated object setup routine */
|
/* Invoke the Qt Designer generated object setup routine */
|
||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
|
|
||||||
picture = NULL;
|
picture = NULL;
|
||||||
|
|
||||||
// connect up the buttons.
|
// connect up the buttons.
|
||||||
connect( ui.cancelButton, SIGNAL( clicked ( bool ) ), this, SLOT( cancelChannel( ) ) );
|
connect( ui.cancelButton, SIGNAL( clicked ( bool ) ), this, SLOT( cancelChannel( ) ) );
|
||||||
connect( ui.createButton, SIGNAL( clicked ( bool ) ), this, SLOT( createChannel( ) ) );
|
connect( ui.createButton, SIGNAL( clicked ( bool ) ), this, SLOT( createChannel( ) ) );
|
||||||
|
|
||||||
connect( ui.LogoButton, SIGNAL(clicked() ), this , SLOT(addChannelLogo()));
|
connect( ui.LogoButton, SIGNAL(clicked() ), this , SLOT(addChannelLogo()));
|
||||||
connect( ui.ChannelLogoButton, SIGNAL(clicked() ), this , SLOT(addChannelLogo()));
|
connect( ui.ChannelLogoButton, SIGNAL(clicked() ), this , SLOT(addChannelLogo()));
|
||||||
connect( ui.pubKeyShare_cb, SIGNAL( clicked() ), this, SLOT( setShareList( ) ));
|
connect( ui.pubKeyShare_cb, SIGNAL( clicked() ), this, SLOT( setShareList( ) ));
|
||||||
connect(ui.keyShareList, SIGNAL(itemChanged( QTreeWidgetItem *, int ) ),
|
connect( ui.keyShareList, SIGNAL(itemChanged( QTreeWidgetItem *, int ) ),
|
||||||
this, SLOT(togglePersonItem( QTreeWidgetItem *, int ) ));
|
this, SLOT(togglePersonItem( QTreeWidgetItem *, int ) ));
|
||||||
|
|
||||||
if(!ui.pubKeyShare_cb->isChecked()){
|
if(!ui.pubKeyShare_cb->isChecked()){
|
||||||
|
@ -55,7 +55,7 @@ CreateChannel::CreateChannel(QWidget *parent)
|
||||||
this->size().height());
|
this->size().height());
|
||||||
}
|
}
|
||||||
|
|
||||||
newChannel();
|
newChannel();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,6 +108,7 @@ void CreateChannel::setShareList(){
|
||||||
if (detail.state & RS_PEER_STATE_CONNECTED) {
|
if (detail.state & RS_PEER_STATE_CONNECTED) {
|
||||||
item -> setTextColor(0,(Qt::darkBlue));
|
item -> setTextColor(0,(Qt::darkBlue));
|
||||||
}
|
}
|
||||||
|
item -> setSizeHint(0, QSize( 17,17 ) );
|
||||||
|
|
||||||
item -> setText(1, QString::fromStdString(detail.id));
|
item -> setText(1, QString::fromStdString(detail.id));
|
||||||
|
|
||||||
|
@ -142,7 +143,7 @@ void CreateChannel::newChannel()
|
||||||
/* enforce Private for the moment */
|
/* enforce Private for the moment */
|
||||||
ui.typePrivate->setChecked(true);
|
ui.typePrivate->setChecked(true);
|
||||||
|
|
||||||
ui.typeEncrypted->setEnabled(true);
|
ui.typeEncrypted->setEnabled(true);
|
||||||
|
|
||||||
ui.msgAnon->setChecked(true);
|
ui.msgAnon->setChecked(true);
|
||||||
ui.msgAuth->setEnabled(false);
|
ui.msgAuth->setEnabled(false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue