connect(this, SIGNAL(accepted()), this, SLOT(slotApplyProperties()));
connect(m_view.buttonBox->button(QDialogButtonBox::Apply), SIGNAL(clicked()), this, SLOT(slotApplyProperties()));
m_view.buttonBox->button(QDialogButtonBox::Apply)->setEnabled(false);
+
+ m_view.metadata_list->resizeColumnToContents(0);
+ m_view.clip_vproperties->resizeColumnToContents(0);
+ m_view.clip_aproperties->resizeColumnToContents(0);
adjustSize();
}
Q_OBJECT
public:
PropertiesViewDelegate(QWidget *parent) : QStyledItemDelegate(parent) {
- m_height = parent->fontMetrics().height() * 1.5;
+ m_height = parent->fontMetrics().height() * 1.2;
}
- virtual QSize sizeHint(const QStyleOptionViewItem &, const QModelIndex &) const {
- return QSize(10, m_height);
+ virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const {
+ return QSize(QStyledItemDelegate::sizeHint(option, index).width(), m_height);
}
private:
int m_height;