+ // the stretchwidget allows the metadata widget to be top aligned and fills
+ // the remaining vertical space
+ QWidget* stretchWidget = new QWidget(tipContent);
+ stretchWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
+
+ QWidget* textContainer = new QWidget(tipContent);
+ QVBoxLayout* textLayout = new QVBoxLayout(textContainer);
+ textLayout->addWidget(nameLabel);
+ textLayout->addWidget(new KSeparator());
+ textLayout->addWidget(metaDataWidget);
+ textLayout->addWidget(stretchWidget);
+