{
QGridLayout *layout = new QGridLayout(this);
layout->setContentsMargins(0, 0, 0, 0);
+ layout->setSpacing(0);
m_name = new QLabel(name, this);
layout->addWidget(m_name, 0, 0);
m_commentLabel = new QLabel(comment, this);
m_commentLabel->setWordWrap(true);
+ m_commentLabel->setTextFormat(Qt::RichText);
m_commentLabel->setAlignment(Qt::AlignLeft | Qt::AlignTop);
m_commentLabel->setFrameShape(QFrame::StyledPanel);
m_commentLabel->setFrameShadow(QFrame::Raised);
void DoubleParameterWidget::slotShowComment()
{
- if (m_commentLabel->text() != QString())
- m_commentLabel->setHidden(!m_commentLabel->isHidden());
+ if (m_commentLabel->text() != QString()) {
+ if (m_commentLabel->isHidden()) {
+ m_commentLabel->setHidden(false);
+ layout()->setContentsMargins(0, 0, 0, 15);
+ } else {
+ m_commentLabel->setHidden(true);
+ layout()->setContentsMargins(0, 0, 0, 0);
+ }
+ }
}
#include "doubleparameterwidget.moc"
m_showButtons->addButton(radio, columnId);
if (e.attribute("intimeline") == "1")
radio->setChecked(true);
- m_slidersLayout->addWidget(radio, columnId, 1);
+
+ // make the radiobutton stay at the top
+ QVBoxLayout *radioLayout = new QVBoxLayout(this);
+ radioLayout->addWidget(radio);
+ radioLayout->addStretch();
+ m_slidersLayout->addLayout(radioLayout, columnId, 1);
QStringList frames = e.attribute("keyframes").split(";", QString::SkipEmptyParts);
for (int i = 0; i < frames.count(); i++) {