mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +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:
commit
6a2d2e9895
@ -295,4 +295,15 @@ 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);
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user