Go to the documentation of this file.
9 #include <QTreeWidgetItem>
38 template <
class W
idgetT>
40 replaceWidget(WidgetT*& old, QWidget* neu, QLayout* parentLayout)
45 QLayoutItem* oldItem = parentLayout->replaceWidget(old, neu);
54 template <
class W
idgetT>
61 int index = parentLayout->indexOf(old);
63 QWidget* oldItem = parentLayout->replaceWidget(
index, neu);
67 oldItem->deleteLater();
87 class LeadingZeroSpinBox :
public QSpinBox
89 using QSpinBox::QSpinBox;
std::vector< std::string > splitter(std::string const &propertyValue)
void replaceWidget(WidgetT *&old, QWidget *neu, QLayout *parentLayout)
#define ARMARX_CHECK(expression)
Shortcut for ARMARX_CHECK_EXPRESSION.
void clearItem(QTreeWidgetItem *item)
Clear a tree widget item.
void clearLayout(QLayout *layout)
Clear a layout.
std::shared_ptr< Value > value()
QString textFromValue(int value) const override
void clearSplitter(QSplitter *splitter)
LeadingZeroSpinBox(int numDigits, int base)
QSplitter * useSplitter(QLayout *layout)
Let items in layout be children of a splitter.