Project

General

Profile

Bug #1572 ยป SomeSpinboxes.cpp

Anonymous, 11/26/2012 12:08 PM

 

class SomeSpinboxes: public WCompositeWidget {
public:
SomeSpinboxes (bool first = true, WContainerWidget* parent = nullptr) : WCompositeWidget(parent)
{
auto impl = new WContainerWidget;
setImplementation(impl);

auto layout = new WVBoxLayout(impl);

auto grp = new WGroupBox;
layout->addWidget(grp);
layout->addStretch(1);

grp->setTitle("foo oooo oo baaaa aaaar");
auto laygrp = new WVBoxLayout(grp);

laygrp->addWidget(new WSpinBox);
laygrp->addWidget(new WSpinBox);
laygrp->addWidget(new WSpinBox);
laygrp->addWidget(new WSpinBox);

if (first) {
auto dlg = new WDialog;
dlg->setModal(false);
auto dlglayout = new WVBoxLayout(dlg->contents());

dlglayout->addWidget(new SomeSpinboxes(false));
dlglayout->addStretch(1);

dlg->show();
}
}
};


    (1-1/1)