From 7348b8903c53b86f34669dcad1f568339a0916bc Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sun, 2 Feb 2014 19:37:30 +0200 Subject: [PATCH] Correctly resize 'name' column of the content tab. Closes #1360. --- src/properties/proplistdelegate.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/properties/proplistdelegate.h b/src/properties/proplistdelegate.h index 8ee055e3f..561fa816a 100644 --- a/src/properties/proplistdelegate.h +++ b/src/properties/proplistdelegate.h @@ -127,16 +127,6 @@ public: painter->restore(); } - QSize sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const { - QVariant value = index.data(Qt::FontRole); - QFont fnt = value.isValid() ? qvariant_cast(value) : option.font; - QFontMetrics fontMetrics(fnt); - const QString text = index.data(Qt::DisplayRole).toString(); - QRect textRect = QRect(0, 0, 0, fontMetrics.lineSpacing() * (text.count(QLatin1Char('\n')) + 1)); - textRect.setHeight(textRect.height()+4); - return textRect.size(); - } - void setEditorData(QWidget *editor, const QModelIndex &index) const { QComboBox *combobox = static_cast(editor); // Set combobox index