12 const QObject* stateChangeReceiver,
const char* stateChangeSlot)
16 widget->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
17 widget->setToolTip(QString::fromStdString(desc.toolTip));
28 return toUtf8(widget->text());
35 const QObject* stateChangeReceiver,
const char* stateChangeSlot)
40 widget->setLayout(
new QVBoxLayout);
41 widget->layout()->setContentsMargins(0, 0, 0, 0);
42 widget->layout()->addItem(
new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum));
51 const QObject* stateChangeReceiver,
const char* stateChangeSlot)
56 widget->setLayout(
new QVBoxLayout);
57 widget->layout()->setContentsMargins(0, 0, 0, 0);
58 widget->layout()->addItem(
new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding));
67 const QObject* stateChangeReceiver,
const char* stateChangeSlot)
72 widget->setFrameShape(QFrame::HLine);
73 widget->setFrameShadow(QFrame::Sunken);
81 const QObject* stateChangeReceiver,
const char* stateChangeSlot)
86 widget->setFrameShape(QFrame::VLine);
87 widget->setFrameShadow(QFrame::Sunken);
96 const QObject* stateChangeReceiver,
const char* stateChangeSlot)
99 auto widget =
new QWidget();
100 widget->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);