2 #include "ui_removecurvedialog.h" 22 QListWidgetItem* item =
new QListWidgetItem( name );
23 item->setForeground(color);
24 ui->listCurveWidget->addItem(item);
29 auto selected_items =
ui->listCurveWidget->selectedItems();
31 for(
const auto item: selected_items)
33 if( item->isHidden() ==
false)
36 item->setHidden(
true );
40 if(
ui->listCurveWidget->count() > 0)
50 for(
int index = 0; index <
ui->listCurveWidget->count(); ++index)
52 QListWidgetItem* item =
ui->listCurveWidget->item( index );
53 if( item->isHidden() ==
false)
59 if( isEmpty ) this->accept();
Ui::RemoveCurveDialog * ui
void on_pushButtonRemove_pressed()
RemoveCurveDialog(PlotWidget *parent)
void addCurveName(const QString &name, const QColor &color)