comparison 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
comparison
equal deleted inserted replaced
615:156a120345ae 616:d632a1e87018
49 49
50 m_modelView = new QTableView; 50 m_modelView = new QTableView;
51 subgrid->addWidget(m_modelView); 51 subgrid->addWidget(m_modelView);
52 52
53 m_modelView->verticalHeader()->hide(); 53 m_modelView->verticalHeader()->hide();
54 m_modelView->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents); 54 m_modelView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
55 m_modelView->setShowGrid(false); 55 m_modelView->setShowGrid(false);
56 56
57 m_modelModel = new ModelMetadataModel(m_paneStack, true); 57 m_modelModel = new ModelMetadataModel(m_paneStack, true);
58 m_modelView->setModel(m_modelModel); 58 m_modelView->setModel(m_modelModel);
59 59
67 67
68 subgrid->setSpacing(0); 68 subgrid->setSpacing(0);
69 subgrid->setMargin(5); 69 subgrid->setMargin(5);
70 70
71 m_layerView = new QTreeView; 71 m_layerView = new QTreeView;
72 m_layerView->header()->setResizeMode(QHeaderView::ResizeToContents); 72 m_layerView->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
73 subgrid->addWidget(m_layerView); 73 subgrid->addWidget(m_layerView);
74 74
75 m_layerModel = new LayerTreeModel(m_paneStack); 75 m_layerModel = new LayerTreeModel(m_paneStack);
76 m_layerView->setModel(m_layerModel); 76 m_layerView->setModel(m_layerModel);
77 m_layerView->expandAll(); 77 m_layerView->expandAll();