2 #include "ui_curvecolorpick.h" 3 #include <QColorDialog> 10 _mapped_colors(mapped_colors)
16 QListWidgetItem* item =
new QListWidgetItem( QString::fromStdString( it.first) );
17 item->setForeground( it.second );
18 ui->listWidget->addItem( item );
55 for(
int row = 0; row <
ui->listWidget->count(); row++)
57 QListWidgetItem *item =
ui->listWidget->item(row);
58 const std::string
name = item->text().toStdString();
61 item->setForeground( color );
64 QListWidgetItem *item =
ui->listWidget->currentItem();
65 QColor current_color = item->foreground().color();
77 QListWidgetItem *item =
ui->listWidget->currentItem();
78 if( color != item->foreground().color())
81 item->setForeground( color );
bool anyColorModified() const
void changeColor(QString, QColor)
color_widgets::ColorWheel * _color_wheel
void on_pushButtonUndo_clicked()
color_widgets::ColorPreview * _color_preview
void on_colorChanged(QColor color)
void on_pushButtonClose_clicked()
void on_listWidget_itemClicked(QListWidgetItem *item)
CurveColorPick(const std::map< std::string, QColor > &mapped_colors, QWidget *parent=0)
const std::map< std::string, QColor > & _mapped_colors