diff widgets/LayerTreeDialog.cpp @ 616:d632a1e87018 qt5

Build fixes for Qt5
author Chris Cannam
date Mon, 11 Mar 2013 14:23:52 +0000
parents 1d85aa5a49be
children bf9ef624aadf
line wrap: on
line diff
--- a/widgets/LayerTreeDialog.cpp	Fri Nov 16 17:14:12 2012 +0000
+++ b/widgets/LayerTreeDialog.cpp	Mon Mar 11 14:23:52 2013 +0000
@@ -51,7 +51,7 @@
     subgrid->addWidget(m_modelView);
 
     m_modelView->verticalHeader()->hide();
-    m_modelView->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents);
+    m_modelView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
     m_modelView->setShowGrid(false);
 
     m_modelModel = new ModelMetadataModel(m_paneStack, true);
@@ -69,7 +69,7 @@
     subgrid->setMargin(5);
 
     m_layerView = new QTreeView;
-    m_layerView->header()->setResizeMode(QHeaderView::ResizeToContents);
+    m_layerView->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
     subgrid->addWidget(m_layerView);
 
     m_layerModel = new LayerTreeModel(m_paneStack);