Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit 57185657 authored by Frédéric Larue's avatar Frédéric Larue
Browse files

Adding of separators to UIParamSet modified.

parent 23f10c49
......@@ -16,24 +16,11 @@ UIParamSet::UIParamSet( const QString &title, QWidget *parent ) :
m_AnimationCtrl( NULL ),
m_RowCount( 0 )
{
//QWidget *w1 = new QWidget( this );
m_Layout = new QGridLayout( /*w1*/ );
m_Layout->setVerticalSpacing( 2 );
m_Layout->setHorizontalSpacing( 4 );
m_Layout->setContentsMargins( 4, 4, 4, 4 );
/*w1->*/setLayout( m_Layout );
//QWidget *w2 = new QWidget( this );
//QVBoxLayout *l = new QVBoxLayout( this );
//l->setContentsMargins( 0, 0, 0, 0 );
//l->setSpacing( 0 );
//l->addWidget( w1 );
//l->addWidget( w2 );
//l->setStretch( 0, 0 );
//l->setStretch( 1, 10 );
//setLayout( l );
m_Layout = new QGridLayout();
m_Layout->setVerticalSpacing( 2 );
m_Layout->setHorizontalSpacing( 4 );
m_Layout->setContentsMargins( 4, 4, 4, 4 );
setLayout( m_Layout );
}
......@@ -71,7 +58,11 @@ void UIParamSet::Add( UIParam *param )
void UIParamSet::AddSeparator()
{
m_Layout->addWidget( new QLabel(""), m_RowCount, 0, 1, 2 );
QFrame* line = new QFrame();
line->setFrameShape( QFrame::HLine );
line->setFrameShadow( QFrame::Sunken );
line->setMinimumHeight( QApplication::fontMetrics().height()*3/4 );
m_Layout->addWidget( line, m_RowCount, 0, 1, 2 );
++ m_RowCount;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment