mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 04:33:03 +03:00
Fix changing name using table widget
This commit is contained in:
parent
2ccb2faf18
commit
0d81e20772
@ -295,4 +295,15 @@ void ChartItemEditor::on_xAxisFieldComboBox_currentTextChanged(const QString &ar
|
|||||||
{
|
{
|
||||||
if (!m_initing)
|
if (!m_initing)
|
||||||
m_charItem->setXAxisField(arg1);
|
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 on_labelsFieldComboBox_currentTextChanged(const QString &arg1);
|
||||||
void slotChangeSeriesColor();
|
void slotChangeSeriesColor();
|
||||||
void on_seriesTypeComboBox_currentIndexChanged(const QString &arg1);
|
void on_seriesTypeComboBox_currentIndexChanged(const QString &arg1);
|
||||||
|
|
||||||
void on_xAxisFieldComboBox_currentTextChanged(const QString &arg1);
|
void on_xAxisFieldComboBox_currentTextChanged(const QString &arg1);
|
||||||
|
void on_tableWidget_itemChanged(QTableWidgetItem *item);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void readSetting();
|
void readSetting();
|
||||||
|
Loading…
Reference in New Issue
Block a user