MCPcopy Create free account
hub / github.com/QuiteRSS/quiterss / showMenuAddButton

Method showMenuAddButton

src/feedpropertiesdialog.cpp:602–620  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

600}
601//------------------------------------------------------------------------------
602void 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//------------------------------------------------------------------------------
622void FeedPropertiesDialog::addColumn(QAction *action)
623{

Callers

nothing calls this directly

Calls 2

addActionMethod · 0.80
setDataMethod · 0.45

Tested by

no test coverage detected