Commit 4748d141 authored by Ian Bush's avatar Ian Bush
Browse files

Refs #17807 Clang format

parent 836bc780
......@@ -240,10 +240,9 @@ void TomographyIfaceViewQtGUI::removeClicked() {
}
void TomographyIfaceViewQtGUI::menuOpenClicked() {
QString s =
QFileDialog::getOpenFileName(0, "Open file", QDir::currentPath(),
"NeXus files (*.nxs);;All files (*)",
new QString("NeXus files (*.nxs)"));
QString s = QFileDialog::getOpenFileName(0, "Open file", QDir::currentPath(),
"NeXus files (*.nxs);;All files (*)",
new QString("NeXus files (*.nxs)"));
std::string name = s.toStdString();
if ("" == name)
......@@ -299,10 +298,9 @@ void TomographyIfaceViewQtGUI::menuSaveClicked() {
}
void TomographyIfaceViewQtGUI::menuSaveAsClicked() {
QString s =
QFileDialog::getSaveFileName(0, "Save file", QDir::currentPath(),
"NeXus files (*.nxs);;All files (*)",
new QString("NeXus files (*.nxs)"));
QString s = QFileDialog::getSaveFileName(0, "Save file", QDir::currentPath(),
"NeXus files (*.nxs);;All files (*)",
new QString("NeXus files (*.nxs)"));
std::string name = s.toStdString();
if ("" == name)
return;
......
......@@ -754,8 +754,8 @@ void InstrumentWidgetMaskTab::sumDetsToWorkspace() {
}
void InstrumentWidgetMaskTab::saveIncludeGroupToFile() {
QString fname = m_instrWidget->getSaveFileName(
"Save grouping file", "XML files (*.xml);;All (*)");
QString fname = m_instrWidget->getSaveFileName("Save grouping file",
"XML files (*.xml);;All (*)");
if (!fname.isEmpty()) {
QList<int> dets;
m_instrWidget->getSurface()->getMaskedDetectors(dets);
......@@ -764,8 +764,8 @@ void InstrumentWidgetMaskTab::saveIncludeGroupToFile() {
}
void InstrumentWidgetMaskTab::saveExcludeGroupToFile() {
QString fname = m_instrWidget->getSaveFileName(
"Save grouping file", "XML files (*.xml);;All (*)");
QString fname = m_instrWidget->getSaveFileName("Save grouping file",
"XML files (*.xml);;All (*)");
if (!fname.isEmpty()) {
QList<int> dets;
m_instrWidget->getSurface()->getMaskedDetectors(dets);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment