void QWizard::layOut() { delete d->v; d->v = new QVBoxLayout( this, 6, 0, "top-level layout" ); QHBoxLayout * l; l = new QHBoxLayout( 6 ); d->v->addLayout( l, 0 ); layOutTitleRow( l, d->current ? d->current->t : QString::null ); if ( ! d->hbar1 ) { d->hbar1 = new QFrame( this, "<hr>", 0 ); d->hbar1->setFrameStyle( QFrame::Sunken + QFrame::HLine ); d->hbar1->setFixedHeight( 12 ); } d->v->addWidget( d->hbar1 ); d->v->addWidget( d->ws, 10 ); if ( ! d->hbar2 ) { d->hbar2 = new QFrame( this, "<hr>", 0 ); d->hbar2->setFrameStyle( QFrame::Sunken + QFrame::HLine ); d->hbar2->setFixedHeight( 12 ); } d->v->addWidget( d->hbar2 ); l = new QHBoxLayout( 6 ); d->v->addLayout( l ); layOutButtonRow( l ); d->v->activate(); }
void MythWizard::layOut() { delete d->v; d->v = new QVBoxLayout( this); d->v->setMargin(6); d->v->setSpacing(0); d->v->setObjectName("top-level layout"); QHBoxLayout * l; l = new QHBoxLayout(); l->setMargin(6); d->v->addLayout( l, 0 ); layOutTitleRow( l, d->current ? d->current->t : QString() ); if ( ! d->hbar1 ) { d->hbar1 = new QFrame(this, nullptr); d->hbar1->setObjectName("MythWizard - hbar1"); d->hbar1->setFrameStyle(QFrame::Sunken | QFrame::HLine); d->hbar1->setFixedHeight( 12 ); } d->v->addWidget( d->hbar1 ); d->v->addWidget( d->ws, 10 ); if (!d->helpgroup) { d->helpgroup = new MythGroupBox(this); d->helpgroup->setObjectName("MythWizard -- help group box"); d->help = new MythLabel(d->helpgroup); d->help->setObjectName("MythWizard -- help text"); d->help->setAlignment(Qt::AlignLeft | Qt::AlignTop); d->help->setWordWrap(true); d->help->setMinimumWidth(screenwidth - (int)(40 * wmult)); d->help->setMaximumHeight((int)(80 * hmult)); d->help->setMinimumHeight((int)(80 * hmult)); QVBoxLayout *helplayout = new QVBoxLayout(d->helpgroup); helplayout->setMargin(10); helplayout->addWidget(d->help); } else { d->help->setText(""); } d->v->addWidget(d->helpgroup); if ( ! d->hbar2 ) { d->hbar2 = new QFrame( this, nullptr ); d->hbar2->setObjectName("MythWizard - hbar2"); d->hbar2->setFrameStyle(QFrame::Sunken | QFrame::HLine); d->hbar2->setFixedHeight( 12 ); } d->v->addWidget( d->hbar2 ); l = new QHBoxLayout(); l->setMargin(6); d->v->addLayout( l ); layOutButtonRow( l ); d->v->activate(); }