0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-01-11 09:08:09 +03:00

Merge pull request #391 from emil-sawicki9/bugfix/editing-series-names-in-dialog

Bugfix/changing name using table widget
This commit is contained in:
Alexander Arin 2022-03-20 21:40:39 +03:00 committed by GitHub
commit 6a2d2e9895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -296,3 +296,14 @@ void ChartItemEditor::on_xAxisFieldComboBox_currentTextChanged(const QString &ar
if (!m_initing)
m_charItem->setXAxisField(arg1);
}
void ChartItemEditor::on_tableWidget_itemChanged(QTableWidgetItem *item)
{
if (ui->seriesNameLineEdit->hasFocus())
return;
const QString dataStr = item->data(Qt::DisplayRole).toString();
if (dataStr == ui->seriesNameLineEdit->text())
return;
ui->seriesNameLineEdit->setText(dataStr);
}

View File

@ -40,8 +40,8 @@ private slots:
void on_labelsFieldComboBox_currentTextChanged(const QString &arg1);
void slotChangeSeriesColor();
void on_seriesTypeComboBox_currentIndexChanged(const QString &arg1);
void on_xAxisFieldComboBox_currentTextChanged(const QString &arg1);
void on_tableWidget_itemChanged(QTableWidgetItem *item);
private:
void readSetting();