summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2013-10-18 11:54:15 (GMT)
committerSwift Review <review@swift.im>2013-10-26 15:37:24 (GMT)
commit9720dedc1a2622a98e078b486886668b6e04ea0a (patch)
treed5284b4c377c3f03420e917f6e352f5dfe887023 /Swift/QtUI/QtBlockListEditorWindow.cpp
parent08289aadf4065e1c404af50e25ed511b2e839fdb (diff)
downloadswift-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/QtBlockListEditorWindow.cpp')
-rw-r--r--Swift/QtUI/QtBlockListEditorWindow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Swift/QtUI/QtBlockListEditorWindow.cpp b/Swift/QtUI/QtBlockListEditorWindow.cpp
index 150b634..a759a3f 100644
--- a/Swift/QtUI/QtBlockListEditorWindow.cpp
+++ b/Swift/QtUI/QtBlockListEditorWindow.cpp
@@ -77,8 +77,7 @@ QtBlockListEditorWindow::QtBlockListEditorWindow() : QWidget(), ui(new Ui::QtBlo
ui->blockListTreeWidget->setColumnCount(2);
ui->blockListTreeWidget->header()->setStretchLastSection(false);
- int closeIconWidth = style()->pixelMetric(QStyle::PM_TabCloseIndicatorWidth, 0, 0);
- ui->blockListTreeWidget->header()->resizeSection(1, closeIconWidth);
+ ui->blockListTreeWidget->header()->resizeSection(1, itemDelegate->sizeHint(QStyleOptionViewItem(), QModelIndex()).width());
#if QT_VERSION >= 0x050000
ui->blockListTreeWidget->header()->setSectionResizeMode(0, QHeaderView::Stretch);