26 #include <QHBoxLayout>
33 QHBoxLayout* box =
new QHBoxLayout(
this);
34 box->setContentsMargins(0, 0, 0, 0);
35 box->setAlignment(Qt::AlignLeft);
36 _label =
new QLabel(label);
37 box->addWidget(_label);
40 QFrame* frame =
new QFrame;
42 frame->setFrameShape(QFrame::HLine);
43 frame->setFrameShadow(QFrame::Sunken);
44 box->addWidget(frame, 0, Qt::AlignLeft | Qt::AlignVCenter);
48 QSize LabelHLineWidget::sizeHint()
const {
return QSize(200, 20); }