------------------------------------------------------------------------------
| 600 | } |
| 601 | //------------------------------------------------------------------------------ |
| 602 | void FeedPropertiesDialog::showMenuAddButton() |
| 603 | { |
| 604 | QListIterator<QAction *> iter(addButtonMenu_->actions()); |
| 605 | while (iter.hasNext()) { |
| 606 | QAction *nextAction = iter.next(); |
| 607 | delete nextAction; |
| 608 | } |
| 609 | |
| 610 | for (int i = 0; i < feedProperties.column.indexList.count(); ++i) { |
| 611 | int index = feedProperties.column.indexList.at(i); |
| 612 | QList<QTreeWidgetItem *> treeItems = columnsTree_->findItems(QString::number(index), |
| 613 | Qt::MatchFixedString, |
| 614 | 1); |
| 615 | if (!treeItems.count()) { |
| 616 | QAction *action = addButtonMenu_->addAction(feedProperties.column.nameList.at(i)); |
| 617 | action->setData(index); |
| 618 | } |
| 619 | } |
| 620 | } |
| 621 | //------------------------------------------------------------------------------ |
| 622 | void FeedPropertiesDialog::addColumn(QAction *action) |
| 623 | { |