summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilian Wolff <mail@milianw.de>2016-08-21 20:01:10 (GMT)
committerMilian Wolff <mail@milianw.de>2016-08-21 20:01:10 (GMT)
commit49ade0d9b3539e433342537a54ae51b7d9eaf0dd (patch)
tree5ed0d22b8dcf73f91cc243ec2b2180fa2f9c2b7a
parent1dff5d5aee9a8ebdc6b38faa9791b6cdb60674a2 (diff)
Fix compile with Qt 5 without deprecated features:
Use QHeaderView::setSectionsMovable and ::setSectionResizeMode
-rw-r--r--src/transportlistview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transportlistview.cpp b/src/transportlistview.cpp
index 3ea7ec8..c8bf5a5 100644
--- a/src/transportlistview.cpp
+++ b/src/transportlistview.cpp
@@ -41,8 +41,8 @@ TransportListView::TransportListView(QWidget *parent)
<< i18nc("@title:column email transport name", "Name")
<< i18nc("@title:column email transport type", "Type"));
setRootIsDecorated(false);
- header()->setMovable(false);
- header()->setResizeMode(QHeaderView::ResizeToContents);
+ header()->setSectionsMovable(false);
+ header()->setSectionResizeMode(QHeaderView::ResizeToContents);
setAllColumnsShowFocus(true);
setAlternatingRowColors(true);
setSortingEnabled(true);