| 98 | } |
| 99 | |
| 100 | void WideBar::insertActionAfter(QAction* after, QAction* action){ |
| 101 | auto iter = getMatching(after); |
| 102 | if(iter == m_entries.end()) |
| 103 | return; |
| 104 | |
| 105 | auto entry = new BarEntry(); |
| 106 | entry->qAction = insertWidget((*(iter+1))->qAction, new ActionButton(action, this)); |
| 107 | entry->wideAction = action; |
| 108 | entry->type = BarEntry::Action; |
| 109 | m_entries.insert(iter + 1, entry); |
| 110 | } |
| 111 | |
| 112 | void WideBar::insertSpacer(QAction* action) |
| 113 | { |
no test coverage detected