| 86 | } |
| 87 | |
| 88 | void WideBar::insertActionBefore(QAction* before, QAction* action){ |
| 89 | auto iter = getMatching(before); |
| 90 | if(iter == m_entries.end()) |
| 91 | return; |
| 92 | |
| 93 | auto entry = new BarEntry(); |
| 94 | entry->qAction = insertWidget((*iter)->qAction, new ActionButton(action, this)); |
| 95 | entry->wideAction = action; |
| 96 | entry->type = BarEntry::Action; |
| 97 | m_entries.insert(iter, entry); |
| 98 | } |
| 99 | |
| 100 | void WideBar::insertActionAfter(QAction* after, QAction* action){ |
| 101 | auto iter = getMatching(after); |
no test coverage detected