Mercurial > hg > svgui
comparison widgets/CSVExportDialog.cpp @ 1611:a6e37c28d762
Fix some Qt deprecations
author | Chris Cannam |
---|---|
date | Tue, 16 Jun 2020 15:16:50 +0100 |
parents | 9cd77efef37c |
children |
comparison
equal
deleted
inserted
replaced
1610:bd1a7c84da8c | 1611:a6e37c28d762 |
---|---|
68 QChar defaultSeparator = ','; | 68 QChar defaultSeparator = ','; |
69 if (m_config.fileExtension != "csv") { | 69 if (m_config.fileExtension != "csv") { |
70 defaultSeparator = '\t'; | 70 defaultSeparator = '\t'; |
71 } | 71 } |
72 | 72 |
73 rowColLayout->addWidget(new QLabel(tr("Column separator:"), 0, 0)); | 73 rowColLayout->addWidget(new QLabel(tr("Column separator:"))); |
74 m_separatorCombo = new QComboBox; | 74 m_separatorCombo = new QComboBox; |
75 for (auto p: separators) { | 75 for (auto p: separators) { |
76 if (p.second == '\t' || p.second == ' ') { | 76 if (p.second == '\t' || p.second == ' ') { |
77 m_separatorCombo->addItem(p.first, p.second); | 77 m_separatorCombo->addItem(p.first, p.second); |
78 } else { | 78 } else { |