| 520 | } |
| 521 | |
| 522 | QMenu *editorView::createColorMenu(const char * slot,int type,QString text) |
| 523 | { |
| 524 | QMenu *colorMenu = new QMenu; |
| 525 | QAction *action = new QAction(text, this); |
| 526 | action->setData(type); |
| 527 | connect(action, SIGNAL(triggered()),this,slot); |
| 528 | colorMenu->addAction(action); |
| 529 | return colorMenu; |
| 530 | } |
| 531 | |
| 532 | void editorView::slotItemSelected(graphItemBase* ib) |
| 533 | { |