diff options
author | Tobias Markmann <tm@ayena.de> | 2013-10-18 11:54:15 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2013-10-26 15:37:24 (GMT) |
commit | 9720dedc1a2622a98e078b486886668b6e04ea0a (patch) | |
tree | d5284b4c377c3f03420e917f6e352f5dfe887023 /Swift/QtUI/UserSearch | |
parent | 08289aadf4065e1c404af50e25ed511b2e839fdb (diff) | |
download | swift-9720dedc1a2622a98e078b486886668b6e04ea0a.zip swift-9720dedc1a2622a98e078b486886668b6e04ea0a.tar.bz2 |
VCard: Add small margin to QtRemovableItemDelegate.
Change-Id: I8032c537c3e5914f43dffb4818bb00caf2ab3bbd
License: This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.
Diffstat (limited to 'Swift/QtUI/UserSearch')
-rw-r--r-- | Swift/QtUI/UserSearch/QtContactListWidget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Swift/QtUI/UserSearch/QtContactListWidget.cpp b/Swift/QtUI/UserSearch/QtContactListWidget.cpp index 899c592..90adc11 100644 --- a/Swift/QtUI/UserSearch/QtContactListWidget.cpp +++ b/Swift/QtUI/UserSearch/QtContactListWidget.cpp @@ -44,8 +44,7 @@ QtContactListWidget::QtContactListWidget(QWidget* parent, SettingsProvider* sett setItemDelegateForColumn(0, contactListDelegate_); setItemDelegateForColumn(1, removableItemDelegate_); - int closeIconWidth = fontMetrics().height(); - header()->resizeSection(1, closeIconWidth); + header()->resizeSection(1, removableItemDelegate_->sizeHint(QStyleOptionViewItem(), QModelIndex()).width()); header()->setStretchLastSection(false); #if QT_VERSION >= 0x050000 |