Commit 29549da6 authored by Giovanni Di Siena's avatar Giovanni Di Siena
Browse files

Re #25299 qt modernize-use-auto

parent aaf83ba1
......@@ -58,7 +58,7 @@ EnggDiffGSASFittingViewQtWidget::~EnggDiffGSASFittingViewQtWidget() {
void EnggDiffGSASFittingViewQtWidget::addWidget(
IEnggDiffMultiRunFittingWidgetView *widget) {
QWidget *qWidget = dynamic_cast<QWidget *>(widget);
auto *qWidget = dynamic_cast<QWidget *>(widget);
m_ui.gridLayout_multiRunWidget->addWidget(qWidget, 0, 0);
}
......
......@@ -827,8 +827,7 @@ void EnggDiffractionPresenter::startAsyncCalibWorker(
const std::string &ceriaNo, const std::string &specNos) {
delete m_workerThread;
m_workerThread = new QThread(this);
EnggDiffWorker *worker =
new EnggDiffWorker(this, outFilename, vanNo, ceriaNo, specNos);
auto *worker = new EnggDiffWorker(this, outFilename, vanNo, ceriaNo, specNos);
worker->moveToThread(m_workerThread);
connect(m_workerThread, SIGNAL(started()), worker, SLOT(calibrate()));
......@@ -1939,7 +1938,7 @@ void EnggDiffractionPresenter::startAsyncRebinningTimeWorker(
delete m_workerThread;
m_workerThread = new QThread(this);
EnggDiffWorker *worker = new EnggDiffWorker(this, runNo, bin, outWSName);
auto *worker = new EnggDiffWorker(this, runNo, bin, outWSName);
worker->moveToThread(m_workerThread);
connect(m_workerThread, SIGNAL(started()), worker, SLOT(rebinTime()));
......@@ -2029,8 +2028,7 @@ void EnggDiffractionPresenter::startAsyncRebinningPulsesWorker(
delete m_workerThread;
m_workerThread = new QThread(this);
EnggDiffWorker *worker =
new EnggDiffWorker(this, runNo, nperiods, timeStep, outWSName);
auto *worker = new EnggDiffWorker(this, runNo, nperiods, timeStep, outWSName);
worker->moveToThread(m_workerThread);
connect(m_workerThread, SIGNAL(started()), worker, SLOT(rebinPulses()));
......@@ -2390,8 +2388,8 @@ std::string EnggDiffractionPresenter::TOFFitWorkspaceFactory(
const std::vector<double> &tzero, const std::string &specNo,
const std::string &customisedBankName) const {
size_t bank1 = size_t(0);
size_t bank2 = size_t(1);
auto bank1 = size_t(0);
auto bank2 = size_t(1);
std::string pyRange;
std::string plotSpecNum = "False";
......
......@@ -162,7 +162,7 @@ void DataComparison::addDataItem(Workspace_const_sptr ws) {
m_uiForm.twCurrentData->insertRow(currentRows);
// Insert the colour selector
QComboBox *colourCombo = new QComboBox();
auto *colourCombo = new QComboBox();
// Add colours
colourCombo->addItem("Black", QVariant(Qt::black));
colourCombo->addItem("Red", QVariant(Qt::red));
......@@ -189,12 +189,12 @@ void DataComparison::addDataItem(Workspace_const_sptr ws) {
m_uiForm.twCurrentData->setCellWidget(currentRows, COLOUR, colourCombo);
// Insert the workspace name
QTableWidgetItem *wsNameItem = new QTableWidgetItem(tr(wsName.c_str()));
auto *wsNameItem = new QTableWidgetItem(tr(wsName.c_str()));
wsNameItem->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
m_uiForm.twCurrentData->setItem(currentRows, WORKSPACE_NAME, wsNameItem);
// Insert the spectra offset
QSpinBox *offsetSpin = new QSpinBox();
auto *offsetSpin = new QSpinBox();
offsetSpin->setMinimum(0);
offsetSpin->setMaximum(INT_MAX);
connect(offsetSpin, SIGNAL(valueChanged(int)), this,
......@@ -202,7 +202,7 @@ void DataComparison::addDataItem(Workspace_const_sptr ws) {
m_uiForm.twCurrentData->setCellWidget(currentRows, SPEC_OFFSET, offsetSpin);
// Insert the current displayed spectra
QTableWidgetItem *currentSpecItem = new QTableWidgetItem(tr("n/a"));
auto *currentSpecItem = new QTableWidgetItem(tr("n/a"));
currentSpecItem->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
m_uiForm.twCurrentData->setItem(currentRows, CURRENT_SPEC, currentSpecItem);
}
......@@ -242,7 +242,7 @@ int DataComparison::getInitialColourIndex() {
// Build a list of used colours
QList<int> usedColours;
for (int row = 0; row < numRows - 1; row++) {
QComboBox *colourSelector = dynamic_cast<QComboBox *>(
auto *colourSelector = dynamic_cast<QComboBox *>(
m_uiForm.twCurrentData->cellWidget(row, COLOUR));
int index = colourSelector->currentIndex();
usedColours << index;
......@@ -378,7 +378,7 @@ void DataComparison::plotWorkspaces() {
if (m_curves.contains(workspaceName))
m_curves[workspaceName]->attach(nullptr);
QComboBox *colourSelector = dynamic_cast<QComboBox *>(
auto *colourSelector = dynamic_cast<QComboBox *>(
m_uiForm.twCurrentData->cellWidget(row, COLOUR));
QColor curveColour =
colourSelector->itemData(colourSelector->currentIndex())
......@@ -414,7 +414,7 @@ void DataComparison::normaliseSpectraOffsets() {
// Find the lowest offset in the data table
for (int row = 0; row < numRows; row++) {
QSpinBox *specOffsetSpin = dynamic_cast<QSpinBox *>(
auto *specOffsetSpin = dynamic_cast<QSpinBox *>(
m_uiForm.twCurrentData->cellWidget(row, SPEC_OFFSET));
int specOffset = specOffsetSpin->value();
if (specOffset < lowestOffset)
......@@ -424,7 +424,7 @@ void DataComparison::normaliseSpectraOffsets() {
// Subtract the lowest offset from all offsets to ensure at least one offset
// is zero
for (int row = 0; row < numRows; row++) {
QSpinBox *specOffsetSpin = dynamic_cast<QSpinBox *>(
auto *specOffsetSpin = dynamic_cast<QSpinBox *>(
m_uiForm.twCurrentData->cellWidget(row, SPEC_OFFSET));
int specOffset = specOffsetSpin->value();
specOffset -= lowestOffset;
......
......@@ -576,7 +576,7 @@ void MantidEV::selectWorkspace_slot() {
std::string axisCORELLI =
m_uiForm.axisCORELLI_cmbx->currentText().toStdString();
RunLoadAndConvertToMD *runner = new RunLoadAndConvertToMD(
auto *runner = new RunLoadAndConvertToMD(
worker, file_name, ev_ws_name, md_ws_name, modQ, minQ, maxQ,
m_uiForm.LorentzCorrection_ckbx->isChecked(),
m_uiForm.loadDataGroupBox->isChecked(), load_det_cal, det_cal_file,
......@@ -722,7 +722,7 @@ void MantidEV::findPeaks_slot() {
m_uiForm.SelectEventWorkspace_ledt->text().trimmed().toStdString();
std::string file_name =
m_uiForm.EventFileName_ledt->text().trimmed().toStdString();
RunFindPeaks *runner = new RunFindPeaks(
auto *runner = new RunFindPeaks(
worker, ev_ws_name, md_ws_name, peaks_ws_name, max_abc, num_to_find,
min_intensity, minQPeaks, maxQPeaks, file_name);
......@@ -903,7 +903,7 @@ void MantidEV::findUB_slot() {
if (!getPositiveDouble(m_uiForm.max_pred_dspacing_ledt, max_pred_dspacing))
return;
RunPredictPeaks *runner =
auto *runner =
new RunPredictPeaks(worker, peaks_ws_name, min_pred_wl, max_pred_wl,
min_pred_dspacing, max_pred_dspacing);
......@@ -1137,7 +1137,7 @@ void MantidEV::integratePeaks_slot() {
if (!getDouble(m_uiForm.AdaptiveQMult_ledt, adaptiveQMult))
return;
RunSphereIntegrate *runner = new RunSphereIntegrate(
auto *runner = new RunSphereIntegrate(
worker, peaks_ws_name, event_ws_name, peak_radius, inner_radius,
outer_radius, integrate_edge, use_cylinder_integration, cylinder_length,
cylinder_percent_bkg, cylinder_profile_fit, adaptive_background,
......@@ -1155,7 +1155,7 @@ void MantidEV::integratePeaks_slot() {
if (!getPositiveDouble(m_uiForm.NBadEdgePixels_ledt, n_bad_edge_pix))
return;
RunFitIntegrate *runner =
auto *runner =
new RunFitIntegrate(worker, peaks_ws_name, event_ws_name, rebin_params,
(size_t)n_bad_edge_pix, use_ikeda_carpenter);
......@@ -1183,7 +1183,7 @@ void MantidEV::integratePeaks_slot() {
return;
}
RunEllipsoidIntegrate *runner = new RunEllipsoidIntegrate(
auto *runner = new RunEllipsoidIntegrate(
worker, peaks_ws_name, event_ws_name, region_radius, specify_size,
peak_size, inner_size, outer_size);
......
......@@ -191,12 +191,12 @@ void SampleTransmission::algorithmComplete(bool error) {
// Fill the output table
double scattering = ws->y(1)[0];
QTreeWidgetItem *scatteringItem = new QTreeWidgetItem();
auto *scatteringItem = new QTreeWidgetItem();
scatteringItem->setText(0, "Scattering");
scatteringItem->setText(1, QString::number(scattering));
m_uiForm.twResults->addTopLevelItem(scatteringItem);
QTreeWidgetItem *transmissionItem = new QTreeWidgetItem();
auto *transmissionItem = new QTreeWidgetItem();
transmissionItem->setText(0, "Transmission");
m_uiForm.twResults->addTopLevelItem(transmissionItem);
transmissionItem->setExpanded(true);
......
......@@ -166,7 +166,7 @@ void SANSAddFiles::setToolTips() {
* @return a pointer to the inserted widget
*/
QListWidgetItem *SANSAddFiles::insertListFront(const QString &text) {
QListWidgetItem *newItem = new QListWidgetItem(text);
auto *newItem = new QListWidgetItem(text);
newItem->setFlags(newItem->flags() | Qt::ItemIsEditable);
m_SANSForm->toAdd_List->insertItem(0, newItem);
return newItem;
......
......@@ -411,7 +411,7 @@ void SANSPlotSpecial::setupTable() {
m_derivatives["Intercept"] = new QTableWidgetItem(*m_emptyCell);
m_derivatives["Chi Squared"] = new QTableWidgetItem(*m_emptyCell);
QTableWidgetItem *lbl = new QTableWidgetItem(*m_emptyCell);
auto *lbl = new QTableWidgetItem(*m_emptyCell);
lbl->setText("Gradient");
m_uiForm.tbDerived->setItem(0, SANSPlotSpecial::FitInformation, lbl);
m_uiForm.tbDerived->setItem(0, SANSPlotSpecial::FitInformationValues,
......
......@@ -47,11 +47,11 @@ void FunctionTemplateBrowser::createBrowser() {
m_parameterManager = new ParameterPropertyManager(this, true);
// create editor factories
QtSpinBoxFactory *spinBoxFactory = new QtSpinBoxFactory(this);
DoubleEditorFactory *doubleEditorFactory = new DoubleEditorFactory(this);
QtLineEditFactory *lineEditFactory = new QtLineEditFactory(this);
QtCheckBoxFactory *checkBoxFactory = new QtCheckBoxFactory(this);
QtEnumEditorFactory *comboBoxFactory = new QtEnumEditorFactory(this);
auto *spinBoxFactory = new QtSpinBoxFactory(this);
auto *doubleEditorFactory = new DoubleEditorFactory(this);
auto *lineEditFactory = new QtLineEditFactory(this);
auto *checkBoxFactory = new QtCheckBoxFactory(this);
auto *comboBoxFactory = new QtEnumEditorFactory(this);
auto *doubleDialogFactory = new DoubleDialogEditorFactory(this, true);
m_browser = new QtTreePropertyBrowser(nullptr, QStringList(), false);
......@@ -88,7 +88,7 @@ void FunctionTemplateBrowser::createBrowser() {
void FunctionTemplateBrowser::init() {
createBrowser();
createProperties();
QVBoxLayout *layout = new QVBoxLayout(this);
auto *layout = new QVBoxLayout(this);
layout->addWidget(m_browser);
layout->setContentsMargins(0, 0, 0, 0);
}
......
......@@ -51,7 +51,7 @@ ISISCalibration::ISISCalibration(IndirectDataReduction *idrUI, QWidget *parent)
m_uiForm.ppCalibration->watchADS(false);
m_uiForm.ppResolution->watchADS(false);
DoubleEditorFactory *doubleEditorFactory = new DoubleEditorFactory();
auto *doubleEditorFactory = new DoubleEditorFactory();
// CAL PROPERTY TREE
m_propTrees["CalPropTree"] = new QtTreePropertyBrowser();
......
......@@ -39,8 +39,8 @@ ISISDiagnostics::ISISDiagnostics(IndirectDataReduction *idrUI, QWidget *parent)
m_uiForm.properties->addWidget(m_propTrees["SlicePropTree"]);
// Editor Factories
DoubleEditorFactory *doubleEditorFactory = new DoubleEditorFactory();
QtCheckBoxFactory *checkboxFactory = new QtCheckBoxFactory();
auto *doubleEditorFactory = new DoubleEditorFactory();
auto *checkboxFactory = new QtCheckBoxFactory();
m_propTrees["SlicePropTree"]->setFactoryForManager(m_dblManager,
doubleEditorFactory);
m_propTrees["SlicePropTree"]->setFactoryForManager(m_blnManager,
......
......@@ -49,7 +49,7 @@ public:
void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index) const override {
QLineEdit *lineEdit = static_cast<QLineEdit *>(editor);
auto *lineEdit = static_cast<QLineEdit *>(editor);
model->setData(index, lineEdit->text(), Qt::EditRole);
}
......
......@@ -49,7 +49,7 @@ public:
void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index) const override {
QLineEdit *lineEdit = static_cast<QLineEdit *>(editor);
auto *lineEdit = static_cast<QLineEdit *>(editor);
model->setData(index, lineEdit->text(), Qt::EditRole);
}
......
......@@ -46,7 +46,7 @@ IndirectSymmetrise::IndirectSymmetrise(IndirectDataReduction *idrUI,
m_uiForm.propertiesPreview->addWidget(m_propTrees["SymmPVPropTree"]);
// Editor Factories
DoubleEditorFactory *doubleEditorFactory = new DoubleEditorFactory();
auto *doubleEditorFactory = new DoubleEditorFactory();
m_propTrees["SymmPropTree"]->setFactoryForManager(m_dblManager,
doubleEditorFactory);
......
......@@ -157,7 +157,7 @@ void ALCBaselineModellingView::setSectionRow(
void ALCBaselineModellingView::addSectionSelector(
int index, IALCBaselineModellingView::SectionSelector values) {
RangeSelector *newSelector = new RangeSelector(m_ui.dataPlot);
auto *newSelector = new RangeSelector(m_ui.dataPlot);
if (index % 3 == 0) {
newSelector->setColour(Qt::blue);
......
......@@ -283,10 +283,8 @@ std::vector<int> MuonGroupingHelper::whichPairToWhichRow() const {
continue;
// test if content in combo boxes
QComboBox *qwF =
static_cast<QComboBox *>(m_uiForm.pairTable->cellWidget(i, 1));
QComboBox *qwB =
static_cast<QComboBox *>(m_uiForm.pairTable->cellWidget(i, 2));
auto *qwF = static_cast<QComboBox *>(m_uiForm.pairTable->cellWidget(i, 1));
auto *qwB = static_cast<QComboBox *>(m_uiForm.pairTable->cellWidget(i, 2));
if (!qwF || !qwB)
continue;
if (qwF->count() < 2 || qwB->count() < 2)
......
......@@ -1089,8 +1089,7 @@ void MuonAnalysis::updatePairTable() {
}
// get previous number of groups as listed in the pair comboboxes
QComboBox *qwF =
static_cast<QComboBox *>(m_uiForm.pairTable->cellWidget(0, 1));
auto *qwF = static_cast<QComboBox *>(m_uiForm.pairTable->cellWidget(0, 1));
int previousNumGroups =
qwF->count(); // how many groups listed in pair combobox
int newNumGroups = numGroups();
......@@ -1098,8 +1097,7 @@ void MuonAnalysis::updatePairTable() {
// reset context of combo boxes
for (int i = 0; i < m_uiForm.pairTable->rowCount(); i++) {
qwF = static_cast<QComboBox *>(m_uiForm.pairTable->cellWidget(i, 1));
QComboBox *qwB =
static_cast<QComboBox *>(m_uiForm.pairTable->cellWidget(i, 2));
auto *qwB = static_cast<QComboBox *>(m_uiForm.pairTable->cellWidget(i, 2));
if (previousNumGroups < newNumGroups) {
// then need to increase the number of entrees in combo box
......@@ -1468,9 +1466,9 @@ void MuonAnalysis::guessAlphaClicked() {
m_updating = true;
if (getPairNumberFromRow(m_pairTableRowInFocus) >= 0) {
QComboBox *qwF = static_cast<QComboBox *>(
auto *qwF = static_cast<QComboBox *>(
m_uiForm.pairTable->cellWidget(m_pairTableRowInFocus, 1));
QComboBox *qwB = static_cast<QComboBox *>(
auto *qwB = static_cast<QComboBox *>(
m_uiForm.pairTable->cellWidget(m_pairTableRowInFocus, 2));
if (!qwF || !qwB)
......@@ -1512,7 +1510,7 @@ void MuonAnalysis::guessAlphaClicked() {
const QString alpha = QString::number(alphaValue);
QComboBox *qwAlpha = static_cast<QComboBox *>(
auto *qwAlpha = static_cast<QComboBox *>(
m_uiForm.pairTable->cellWidget(m_pairTableRowInFocus, 3));
if (qwAlpha)
m_uiForm.pairTable->item(m_pairTableRowInFocus, 3)->setText(alpha);
......@@ -2189,7 +2187,7 @@ void MuonAnalysis::startUpLook() {
for (int i = 0; i < m_uiForm.groupTable->rowCount(); i++) {
QTableWidgetItem *item = m_uiForm.groupTable->item(i, 2);
if (!item) {
QTableWidgetItem *it = new QTableWidgetItem("");
auto *it = new QTableWidgetItem("");
it->setFlags(it->flags() & (~Qt::ItemIsEditable));
m_uiForm.groupTable->setItem(i, 2, it);
} else {
......@@ -2197,7 +2195,7 @@ void MuonAnalysis::startUpLook() {
}
item = m_uiForm.groupTable->item(i, 0);
if (!item) {
QTableWidgetItem *it = new QTableWidgetItem("");
auto *it = new QTableWidgetItem("");
m_uiForm.groupTable->setItem(i, 0, it);
}
}
......
......@@ -111,18 +111,18 @@ void MuonAnalysisResultTableTab::helpResultsClicked() {
void MuonAnalysisResultTableTab::selectAllLogs(bool state) {
if (state) {
for (int i = 0; i < m_uiForm.valueTable->rowCount(); i++) {
QTableWidgetItem *temp =
auto *temp =
static_cast<QTableWidgetItem *>(m_uiForm.valueTable->item(i, 0));
// If there is an item there then check the box
if (temp != nullptr) {
QCheckBox *includeCell =
auto *includeCell =
static_cast<QCheckBox *>(m_uiForm.valueTable->cellWidget(i, 1));
includeCell->setChecked(true);
}
}
} else {
for (int i = 0; i < m_uiForm.valueTable->rowCount(); i++) {
QCheckBox *includeCell =
auto *includeCell =
static_cast<QCheckBox *>(m_uiForm.valueTable->cellWidget(i, 1));
includeCell->setChecked(false);
}
......@@ -135,18 +135,18 @@ void MuonAnalysisResultTableTab::selectAllLogs(bool state) {
void MuonAnalysisResultTableTab::selectAllFittings(bool state) {
if (state) {
for (int i = 0; i < m_uiForm.fittingResultsTable->rowCount(); i++) {
QTableWidgetItem *temp = static_cast<QTableWidgetItem *>(
auto *temp = static_cast<QTableWidgetItem *>(
m_uiForm.fittingResultsTable->item(i, 0));
// If there is an item there then check the box
if (temp != nullptr) {
QCheckBox *includeCell = static_cast<QCheckBox *>(
auto *includeCell = static_cast<QCheckBox *>(
m_uiForm.fittingResultsTable->cellWidget(i, 1));
includeCell->setChecked(true);
}
}
} else {
for (int i = 0; i < m_uiForm.fittingResultsTable->rowCount(); i++) {
QCheckBox *includeCell = static_cast<QCheckBox *>(
auto *includeCell = static_cast<QCheckBox *>(
m_uiForm.fittingResultsTable->cellWidget(i, 1));
includeCell->setChecked(false);
}
......@@ -165,7 +165,7 @@ void MuonAnalysisResultTableTab::storeUserSettings() {
// Find which logs have been selected by the user.
for (int row = 0; row < m_uiForm.valueTable->rowCount(); ++row) {
if (QTableWidgetItem *log = m_uiForm.valueTable->item(row, 0)) {
QCheckBox *logCheckBox =
auto *logCheckBox =
static_cast<QCheckBox *>(m_uiForm.valueTable->cellWidget(row, 1));
m_savedLogsState[log->text()] = logCheckBox->checkState();
}
......@@ -177,7 +177,7 @@ void MuonAnalysisResultTableTab::storeUserSettings() {
for (int row = 0; row < m_uiForm.fittingResultsTable->rowCount(); ++row) {
QTableWidgetItem *temp = m_uiForm.fittingResultsTable->item(row, 0);
if (temp) {
QCheckBox *fittingChoice = static_cast<QCheckBox *>(
auto *fittingChoice = static_cast<QCheckBox *>(
m_uiForm.fittingResultsTable->cellWidget(row, 1));
if (!fittingChoice->isChecked())
m_unselectedFittings += temp->text();
......@@ -800,10 +800,10 @@ QStringList MuonAnalysisResultTableTab::getSelectedItemsToFit() {
QStringList MuonAnalysisResultTableTab::getSelectedLogs() {
QStringList logsSelected;
for (int i = 0; i < m_uiForm.valueTable->rowCount(); i++) {
QCheckBox *includeCell =
auto *includeCell =
static_cast<QCheckBox *>(m_uiForm.valueTable->cellWidget(i, 1));
if (includeCell->isChecked()) {
QTableWidgetItem *logParam =
auto *logParam =
static_cast<QTableWidgetItem *>(m_uiForm.valueTable->item(i, 0));
logsSelected.push_back(logParam->text());
}
......
......@@ -404,7 +404,7 @@ private:
/// Create parameter table output from a fit
ITableWorkspace_sptr getParamTable(int runNumber, bool makeGlobals = false) {
const double base = static_cast<double>(runNumber - m_firstRun);
const auto base = static_cast<double>(runNumber - m_firstRun);
auto table = WorkspaceFactory::Instance().createTable();
// Create columns
table->addColumn("str", "Name");
......
......@@ -530,7 +530,7 @@ public:
template <class Editor>
Editor *EditorFactoryPrivate<Editor>::createEditor(QtProperty *property,
QWidget *parent) {
Editor *editor = new Editor(parent);
auto *editor = new Editor(parent);
initializeEditor(property, editor);
return editor;
}
......
......@@ -434,7 +434,7 @@ void AlgorithmDialog::addOptionalMessage(QVBoxLayout *mainLay) {
inputMessage->setAlignment(Qt::AlignJustify);
inputMessage->setMargin(3);
inputMessage->setText(getOptionalMessage());
QHBoxLayout *msgArea = new QHBoxLayout;
auto *msgArea = new QHBoxLayout;
msgArea->addWidget(inputMessage);
mainLay->addLayout(msgArea, 0);
}
......@@ -667,7 +667,7 @@ QLayout *AlgorithmDialog::createDefaultButtonLayout(
m_exitButton = new QPushButton(cancelText);
connect(m_exitButton, SIGNAL(clicked()), this, SLOT(reject()));
QHBoxLayout *buttonRowLayout = new QHBoxLayout;
auto *buttonRowLayout = new QHBoxLayout;
buttonRowLayout->addWidget(createHelpButton(helpText));
buttonRowLayout->addStretch();
......@@ -693,7 +693,7 @@ QLayout *AlgorithmDialog::createDefaultButtonLayout(
* for that algorithm
*/
QPushButton *AlgorithmDialog::createHelpButton(const QString &helpText) const {
QPushButton *help = new QPushButton(helpText);
auto *help = new QPushButton(helpText);
help->setMaximumWidth(25);
connect(help, SIGNAL(clicked()), this, SLOT(helpClicked()));
return help;
......
Supports Markdown
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