summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/getaddressform.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/getaddressform.cpp b/src/gui/getaddressform.cpp
index a186885..4b1fd26 100644
--- a/src/gui/getaddressform.cpp
+++ b/src/gui/getaddressform.cpp
@@ -48,6 +48,12 @@ GetAddressForm::GetAddressForm(QWidget *parent)
m_model = new AddressTableModel(this, ab_local->get_address_list());
localListView->setModel(m_model);
+
+#if QT_VERSION >= 0x050000
+ localListView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
+#else
+ localListView->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents);
+#endif
}
GetAddressForm::~GetAddressForm()