Layout used by File Upload Wizard Pages. More...
#include <fileuploadwizard.h>
Public Member Functions | |
WizardColumnLayout (QWidget *leftWidget, QWidget *rightWidget=0, QWidget *parent=0) | |
void | addRightWidget (QWidget *widget) |
void | removeRightWidget (QWidget *widget) |
void | addBottomWidget (QWidget *widget) |
Layout used by File Upload Wizard Pages.
This layout is usefull on wizardpages where there is text on the left side, and some widget on the right side, and even some bottom widget.
WizardColumnLayout::WizardColumnLayout | ( | QWidget * | leftWidget, | |
QWidget * | rightWidget = 0 , |
|||
QWidget * | parent = 0 | |||
) |
: QGridLayout(parent) { layoutL = new QVBoxLayout(parent); layoutR = new QVBoxLayout(parent); addLayout(layoutL, 0, 0, Qt::AlignJustify); addLayout(layoutR, 0, 1); setColumnStretch(0, 1); setColumnStretch(1, 1); layoutL->addWidget(leftWidget); if (rightWidget) addRightWidget(rightWidget); }
void WizardColumnLayout::addBottomWidget | ( | QWidget * | widget | ) |
Referenced by PreviewPage::setVisible().
{ addWidget(widget, 1, 0, 1, 2); widget->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding)); }
void WizardColumnLayout::addRightWidget | ( | QWidget * | widget | ) |
Referenced by WizardColumnLayout().
{ layoutR->addWidget(widget); }
void WizardColumnLayout::removeRightWidget | ( | QWidget * | widget | ) |
Referenced by PreviewPage::setVisible().
{ layoutR->removeWidget(widget); }