| 110 | } |
| 111 | |
| 112 | void WideBar::insertSpacer(QAction* action) |
| 113 | { |
| 114 | auto iter = getMatching(action); |
| 115 | if(iter == m_entries.end()) |
| 116 | return; |
| 117 | |
| 118 | QWidget* spacer = new QWidget(); |
| 119 | spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
| 120 | |
| 121 | auto entry = new BarEntry(); |
| 122 | entry->qAction = insertWidget((*iter)->qAction, spacer); |
| 123 | entry->type = BarEntry::Spacer; |
| 124 | m_entries.insert(iter, entry); |
| 125 | } |
| 126 | |
| 127 | void WideBar::insertSeparator(QAction* before) |
| 128 | { |
no test coverage detected