void Script_Graph_Style::copy_style(const Graph ©) { m_crossing_style.from_style(copy.default_edge_style()); m_cusp_style.from_style(copy.default_node_style()); m_colors.clear(); foreach(QColor c, copy.colors()) add_color(c); emit colors_changed(); }
void app_config::change_colors(const colors_t &colors) { store->colors = colors; emit colors_changed(); }
void Script_Graph_Style::add_color(QColor c) { Script_Color* cc = new Script_Color(c,this); m_colors << cc; connect(cc,SIGNAL(changed(QColor)),SIGNAL(colors_changed())); }