layout->addWidget(upPB, 0);
layout->addWidget(downPB, 0);
layout->addWidget(edit_, 10);
-#if QT_VERSION < 0x060000
- layout->setMargin(0);
-#else
layout->setContentsMargins(0, 0, 0, 0);
-#endif
top->addLayout(layout);
-#if QT_VERSION < 0x060000
- top->setMargin(0);
-#else
top->setContentsMargins(0, 0, 0, 0);
-#endif
setFocusProxy(edit_);
upPB->setEnabled(!history().empty());
: QWidget(parent, Qt::Popup), tornoff_(false)
{
QVBoxLayout * v = new QVBoxLayout(this);
-#if QT_VERSION < 0x060000
- v->setMargin(0);
-#else
v->setContentsMargins(0, 0, 0, 0);
-#endif
v->setSpacing(0);
layout_ = new QGridLayout;
layout_->setSpacing(0);